Spaces:
Running on Zero
Running on Zero
Commit ·
1b4e6b8
1
Parent(s): e792114
fix: also hide video download button via CSS as belt-and-suspenders
Browse filesshow_download_button=False handles it at the component level; the CSS rule
ensures it stays hidden even if Gradio re-renders the slot unexpectedly.
app.py
CHANGED
|
@@ -1521,6 +1521,13 @@ _SLOT_CSS = """
|
|
| 1521 |
min-width: 0 !important;
|
| 1522 |
max-width: 50% !important;
|
| 1523 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1524 |
"""
|
| 1525 |
|
| 1526 |
_GLOBAL_JS = """
|
|
|
|
| 1521 |
min-width: 0 !important;
|
| 1522 |
max-width: 50% !important;
|
| 1523 |
}
|
| 1524 |
+
/* Hide the built-in download button on output video slots — downloads are
|
| 1525 |
+
handled by the waveform panel links which always reflect the latest regen. */
|
| 1526 |
+
[id^="slot_vid_"] .download-icon,
|
| 1527 |
+
[id^="slot_vid_"] button[aria-label="Download"],
|
| 1528 |
+
[id^="slot_vid_"] a[download] {
|
| 1529 |
+
display: none !important;
|
| 1530 |
+
}
|
| 1531 |
"""
|
| 1532 |
|
| 1533 |
_GLOBAL_JS = """
|