Fix mobile layout overflow
Browse files
app.py
CHANGED
|
@@ -167,6 +167,7 @@ CUSTOM_CSS = """
|
|
| 167 |
}
|
| 168 |
.edit-type-selector .wrap {
|
| 169 |
gap: 0.45rem;
|
|
|
|
| 170 |
}
|
| 171 |
.edit-type-selector label {
|
| 172 |
border-radius: 8px !important;
|
|
@@ -192,8 +193,10 @@ footer {
|
|
| 192 |
}
|
| 193 |
@media (max-width: 900px) {
|
| 194 |
.gradio-container {
|
|
|
|
| 195 |
padding-left: 14px !important;
|
| 196 |
padding-right: 14px !important;
|
|
|
|
| 197 |
}
|
| 198 |
.ea-output-column {
|
| 199 |
position: static;
|
|
@@ -571,7 +574,7 @@ with gr.Blocks(
|
|
| 571 |
)
|
| 572 |
|
| 573 |
with gr.Row():
|
| 574 |
-
with gr.Column(scale=1, min_width=
|
| 575 |
gr.Markdown("## Inputs", elem_classes=["ea-column-title"])
|
| 576 |
mode_hint = gr.Markdown(_mode_hint(MODE_PROMPT), elem_classes=["ea-hint"])
|
| 577 |
mode = gr.Dropdown(
|
|
@@ -620,7 +623,7 @@ with gr.Blocks(
|
|
| 620 |
label="Source/reference attention",
|
| 621 |
)
|
| 622 |
run = gr.Button("Generate edited video", variant="primary", elem_classes=["ea-generate"])
|
| 623 |
-
with gr.Column(scale=1, min_width=
|
| 624 |
gr.Markdown("## Output", elem_classes=["ea-column-title"])
|
| 625 |
video_out = gr.Video(label="Edited video", height=300)
|
| 626 |
with gr.Accordion("Generation details", open=False):
|
|
|
|
| 167 |
}
|
| 168 |
.edit-type-selector .wrap {
|
| 169 |
gap: 0.45rem;
|
| 170 |
+
flex-wrap: wrap;
|
| 171 |
}
|
| 172 |
.edit-type-selector label {
|
| 173 |
border-radius: 8px !important;
|
|
|
|
| 193 |
}
|
| 194 |
@media (max-width: 900px) {
|
| 195 |
.gradio-container {
|
| 196 |
+
padding-top: 52px !important;
|
| 197 |
padding-left: 14px !important;
|
| 198 |
padding-right: 14px !important;
|
| 199 |
+
overflow-x: hidden !important;
|
| 200 |
}
|
| 201 |
.ea-output-column {
|
| 202 |
position: static;
|
|
|
|
| 574 |
)
|
| 575 |
|
| 576 |
with gr.Row():
|
| 577 |
+
with gr.Column(scale=1, min_width=320):
|
| 578 |
gr.Markdown("## Inputs", elem_classes=["ea-column-title"])
|
| 579 |
mode_hint = gr.Markdown(_mode_hint(MODE_PROMPT), elem_classes=["ea-hint"])
|
| 580 |
mode = gr.Dropdown(
|
|
|
|
| 623 |
label="Source/reference attention",
|
| 624 |
)
|
| 625 |
run = gr.Button("Generate edited video", variant="primary", elem_classes=["ea-generate"])
|
| 626 |
+
with gr.Column(scale=1, min_width=320, elem_classes=["ea-output-column"]):
|
| 627 |
gr.Markdown("## Output", elem_classes=["ea-column-title"])
|
| 628 |
video_out = gr.Video(label="Edited video", height=300)
|
| 629 |
with gr.Accordion("Generation details", open=False):
|