Spaces:
Running
Running
Even better sidebar
Browse files- app.py +1 -1
- styles.css +6 -23
app.py
CHANGED
@@ -265,7 +265,7 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css()) as demo:
|
|
265 |
)
|
266 |
|
267 |
# Model selection header
|
268 |
-
gr.Markdown(f"**Select
|
269 |
|
270 |
# Scrollable container for model buttons
|
271 |
with gr.Column(scale=1, elem_classes=["model-container"]):
|
|
|
265 |
)
|
266 |
|
267 |
# Model selection header
|
268 |
+
gr.Markdown(f"**Select model ({len(Ci_results.available_models)}):**", elem_classes=["model-header"])
|
269 |
|
270 |
# Scrollable container for model buttons
|
271 |
with gr.Column(scale=1, elem_classes=["model-container"]):
|
styles.css
CHANGED
@@ -85,10 +85,10 @@ div[data-testid="column"]:has(.sidebar) {
|
|
85 |
overflow-y: auto !important;
|
86 |
overflow-x: hidden !important;
|
87 |
margin-bottom: 15px !important;
|
88 |
-
scrollbar-width:
|
89 |
-
|
90 |
border: 1px solid #333 !important;
|
91 |
-
border-radius:
|
92 |
padding: 5px !important;
|
93 |
}
|
94 |
|
@@ -96,23 +96,9 @@ div[data-testid="column"]:has(.sidebar) {
|
|
96 |
margin-top: 15px !important;
|
97 |
}
|
98 |
|
99 |
-
/*
|
100 |
.model-container::-webkit-scrollbar {
|
101 |
-
|
102 |
-
background: #111111 !important;
|
103 |
-
}
|
104 |
-
|
105 |
-
.model-container::-webkit-scrollbar-track {
|
106 |
-
background: #111111 !important;
|
107 |
-
}
|
108 |
-
|
109 |
-
.model-container::-webkit-scrollbar-thumb {
|
110 |
-
background-color: #333333 !important;
|
111 |
-
border-radius: 4px !important;
|
112 |
-
}
|
113 |
-
|
114 |
-
.model-container::-webkit-scrollbar-thumb:hover {
|
115 |
-
background-color: #555555 !important;
|
116 |
}
|
117 |
|
118 |
/* Ensure all sidebar content fits within width */
|
@@ -174,9 +160,7 @@ div[data-testid="column"]:has(.model-container) {
|
|
174 |
.model-button {
|
175 |
background: linear-gradient(135deg, #2a2a2a, #1e1e1e) !important;
|
176 |
color: white !important;
|
177 |
-
border: 1px solid #555 !important;
|
178 |
margin: 3px 0 !important;
|
179 |
-
border-radius: 6px !important;
|
180 |
padding: 8px 12px !important;
|
181 |
font-weight: 600 !important;
|
182 |
font-size: 14px !important;
|
@@ -185,7 +169,6 @@ div[data-testid="column"]:has(.model-container) {
|
|
185 |
font-family: monospace !important;
|
186 |
width: 100% !important;
|
187 |
max-width: 100% !important;
|
188 |
-
box-sizing: border-box !important;
|
189 |
white-space: nowrap !important;
|
190 |
text-overflow: ellipsis !important;
|
191 |
display: block !important;
|
@@ -650,4 +633,4 @@ h1, h2, h3, p, .markdown {
|
|
650 |
@keyframes resetScroll {
|
651 |
0% { scroll-behavior: auto; }
|
652 |
100% { scroll-behavior: auto; }
|
653 |
-
}
|
|
|
85 |
overflow-y: auto !important;
|
86 |
overflow-x: hidden !important;
|
87 |
margin-bottom: 15px !important;
|
88 |
+
scrollbar-width: none !important;
|
89 |
+
-ms-overflow-style: none !important;
|
90 |
border: 1px solid #333 !important;
|
91 |
+
border-radius: 8px !important;
|
92 |
padding: 5px !important;
|
93 |
}
|
94 |
|
|
|
96 |
margin-top: 15px !important;
|
97 |
}
|
98 |
|
99 |
+
/* Hide scrollbar for model container */
|
100 |
.model-container::-webkit-scrollbar {
|
101 |
+
display: none !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
103 |
|
104 |
/* Ensure all sidebar content fits within width */
|
|
|
160 |
.model-button {
|
161 |
background: linear-gradient(135deg, #2a2a2a, #1e1e1e) !important;
|
162 |
color: white !important;
|
|
|
163 |
margin: 3px 0 !important;
|
|
|
164 |
padding: 8px 12px !important;
|
165 |
font-weight: 600 !important;
|
166 |
font-size: 14px !important;
|
|
|
169 |
font-family: monospace !important;
|
170 |
width: 100% !important;
|
171 |
max-width: 100% !important;
|
|
|
172 |
white-space: nowrap !important;
|
173 |
text-overflow: ellipsis !important;
|
174 |
display: block !important;
|
|
|
633 |
@keyframes resetScroll {
|
634 |
0% { scroll-behavior: auto; }
|
635 |
100% { scroll-behavior: auto; }
|
636 |
+
}
|