Spaces:
Sleeping
Sleeping
fix(ui): drawer slides via left, not transform, to avoid containing-block weirdness
Browse files
app.py
CHANGED
|
@@ -183,7 +183,7 @@ _CUSTOM_CSS = """
|
|
| 183 |
background: #12161B;
|
| 184 |
padding: 14px 10px !important;
|
| 185 |
flex-shrink: 0;
|
| 186 |
-
transition:
|
| 187 |
}
|
| 188 |
.aio-drawer-heading {
|
| 189 |
font-family: 'IBM Plex Mono', ui-monospace, monospace;
|
|
@@ -237,15 +237,16 @@ _CUSTOM_CSS = """
|
|
| 237 |
.aio-ham-label { display: flex; }
|
| 238 |
.aio-drawer {
|
| 239 |
position: fixed;
|
| 240 |
-
top: 0;
|
|
|
|
| 241 |
z-index: 10;
|
| 242 |
box-shadow: 4px 0 24px rgba(0,0,0,0.6);
|
| 243 |
-
transform: translateX(-100%);
|
| 244 |
max-width: 80vw;
|
|
|
|
| 245 |
}
|
| 246 |
/* checkbox at #aio-ham-toggle is the only sibling pattern Gradio
|
| 247 |
lets us reach without JS — when checked, slide drawer in. */
|
| 248 |
-
body:has(#aio-ham-toggle:checked) .aio-drawer {
|
| 249 |
body:has(#aio-ham-toggle:checked) .aio-shell::before {
|
| 250 |
content: ""; position: fixed; inset: 0;
|
| 251 |
background: rgba(0,0,0,0.55); z-index: 9;
|
|
|
|
| 183 |
background: #12161B;
|
| 184 |
padding: 14px 10px !important;
|
| 185 |
flex-shrink: 0;
|
| 186 |
+
transition: left 0.2s ease;
|
| 187 |
}
|
| 188 |
.aio-drawer-heading {
|
| 189 |
font-family: 'IBM Plex Mono', ui-monospace, monospace;
|
|
|
|
| 237 |
.aio-ham-label { display: flex; }
|
| 238 |
.aio-drawer {
|
| 239 |
position: fixed;
|
| 240 |
+
top: 0; bottom: 0;
|
| 241 |
+
left: -100%;
|
| 242 |
z-index: 10;
|
| 243 |
box-shadow: 4px 0 24px rgba(0,0,0,0.6);
|
|
|
|
| 244 |
max-width: 80vw;
|
| 245 |
+
overflow: hidden;
|
| 246 |
}
|
| 247 |
/* checkbox at #aio-ham-toggle is the only sibling pattern Gradio
|
| 248 |
lets us reach without JS — when checked, slide drawer in. */
|
| 249 |
+
body:has(#aio-ham-toggle:checked) .aio-drawer { left: 0; }
|
| 250 |
body:has(#aio-ham-toggle:checked) .aio-shell::before {
|
| 251 |
content: ""; position: fixed; inset: 0;
|
| 252 |
background: rgba(0,0,0,0.55); z-index: 9;
|