Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -84,15 +84,15 @@ def html(cards, pg, total):
|
|
84 |
overflow: hidden;
|
85 |
}
|
86 |
.container {
|
87 |
-
position: fixed;
|
88 |
top: 0;
|
89 |
left: 0;
|
90 |
right: 0;
|
91 |
-
bottom:
|
92 |
display: flex;
|
93 |
flex-direction: column;
|
94 |
width: 100%;
|
95 |
-
height: 100vh;
|
96 |
box-sizing: border-box;
|
97 |
padding: 10px;
|
98 |
overflow: hidden;
|
@@ -100,10 +100,10 @@ def html(cards, pg, total):
|
|
100 |
.grid {
|
101 |
display: grid;
|
102 |
grid-template-columns: repeat(3, 1fr);
|
103 |
-
grid-template-rows: repeat(3,
|
104 |
gap: 12px;
|
105 |
width: 100%;
|
106 |
-
height:
|
107 |
overflow: hidden;
|
108 |
}
|
109 |
.card {
|
@@ -114,7 +114,7 @@ def html(cards, pg, total):
|
|
114 |
display: flex;
|
115 |
flex-direction: column;
|
116 |
height: 100%;
|
117 |
-
max-height: 100%;
|
118 |
}
|
119 |
.hdr {
|
120 |
padding: 8px 12px;
|
@@ -140,7 +140,7 @@ def html(cards, pg, total):
|
|
140 |
.frame {
|
141 |
flex: 1;
|
142 |
position: relative;
|
143 |
-
overflow: hidden;
|
144 |
}
|
145 |
.frame iframe {
|
146 |
position: absolute;
|
@@ -239,6 +239,7 @@ def build():
|
|
239 |
bottom: 0 !important;
|
240 |
left: 0 !important;
|
241 |
right: 0 !important;
|
|
|
242 |
background: #f0f0f0 !important;
|
243 |
padding: 10px !important;
|
244 |
text-align: center !important;
|
@@ -257,7 +258,7 @@ def build():
|
|
257 |
|
258 |
/* Fix component height */
|
259 |
#component-0 {
|
260 |
-
height: calc(100vh - 60px) !important;
|
261 |
overflow: hidden !important;
|
262 |
}
|
263 |
""") as demo:
|
|
|
84 |
overflow: hidden;
|
85 |
}
|
86 |
.container {
|
87 |
+
position: fixed;
|
88 |
top: 0;
|
89 |
left: 0;
|
90 |
right: 0;
|
91 |
+
bottom: 60px; /* Add space for the bottom buttons */
|
92 |
display: flex;
|
93 |
flex-direction: column;
|
94 |
width: 100%;
|
95 |
+
height: calc(100vh - 60px); /* Account for button height */
|
96 |
box-sizing: border-box;
|
97 |
padding: 10px;
|
98 |
overflow: hidden;
|
|
|
100 |
.grid {
|
101 |
display: grid;
|
102 |
grid-template-columns: repeat(3, 1fr);
|
103 |
+
grid-template-rows: repeat(3, 1.5fr); /* Increased row height by 50% */
|
104 |
gap: 12px;
|
105 |
width: 100%;
|
106 |
+
height: 100%; /* Use all available container height */
|
107 |
overflow: hidden;
|
108 |
}
|
109 |
.card {
|
|
|
114 |
display: flex;
|
115 |
flex-direction: column;
|
116 |
height: 100%;
|
117 |
+
max-height: 100%;
|
118 |
}
|
119 |
.hdr {
|
120 |
padding: 8px 12px;
|
|
|
140 |
.frame {
|
141 |
flex: 1;
|
142 |
position: relative;
|
143 |
+
overflow: hidden;
|
144 |
}
|
145 |
.frame iframe {
|
146 |
position: absolute;
|
|
|
239 |
bottom: 0 !important;
|
240 |
left: 0 !important;
|
241 |
right: 0 !important;
|
242 |
+
height: 60px !important;
|
243 |
background: #f0f0f0 !important;
|
244 |
padding: 10px !important;
|
245 |
text-align: center !important;
|
|
|
258 |
|
259 |
/* Fix component height */
|
260 |
#component-0 {
|
261 |
+
height: calc(100vh - 60px) !important; /* Account for button row */
|
262 |
overflow: hidden !important;
|
263 |
}
|
264 |
""") as demo:
|