fschwartzer commited on
Commit
3bf2525
1 Parent(s): acbcd9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -7
app.py CHANGED
@@ -7,16 +7,32 @@ import plotly.express as px
7
 
8
  st.set_page_config(layout="wide")
9
 
10
- st.markdown(
11
- """
12
  <style>
13
- .stTable {
14
- max-width: 500px; // Adjust the width as per your layout needs
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  }
16
  </style>
17
- """,
18
- unsafe_allow_html=True
19
- )
20
 
21
 
22
  df = pd.read_csv('last_results_8.csv')
 
7
 
8
  st.set_page_config(layout="wide")
9
 
10
+ st.markdown("""
 
11
  <style>
12
+ @media (max-width: 768px) {
13
+ /* Smaller devices, less space */
14
+ .block-container>div>div {
15
+ flex: 1 1 100%; /* Make all columns take full width */
16
+ }
17
+ }
18
+ @media (min-width: 769px) and (max-width: 1024px) {
19
+ /* Medium devices */
20
+ .block-container>div>div {
21
+ flex: 1; /* Default flex behavior */
22
+ }
23
+ .block-container>div>div:nth-child(1) {
24
+ flex: 0 1 50%; /* First column takes half of the space */
25
+ }
26
+ }
27
+ @media (min-width: 1025px) {
28
+ /* Larger devices */
29
+ .block-container>div>div:nth-child(1) {
30
+ flex: 0 1 33%; /* First column takes about a third of the space */
31
+ }
32
  }
33
  </style>
34
+ """, unsafe_allow_html=True)
35
+
 
36
 
37
 
38
  df = pd.read_csv('last_results_8.csv')