Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -208,6 +208,12 @@ custom_css = """
|
|
208 |
display: flex;
|
209 |
align-items: center;
|
210 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
"""
|
212 |
|
213 |
with gr.Blocks(theme=gr.themes.Soft(), css=custom_css) as demo:
|
@@ -262,9 +268,9 @@ with gr.Blocks(theme=gr.themes.Soft(), css=custom_css) as demo:
|
|
262 |
gr.Markdown("## Story Starters")
|
263 |
|
264 |
# Create three placeholder buttons for story starters
|
265 |
-
starter_btn1 = gr.Button("Starter 1", scale=1, min_width=250)
|
266 |
-
starter_btn2 = gr.Button("Starter 2", scale=1, min_width=250)
|
267 |
-
starter_btn3 = gr.Button("Starter 3", scale=1, min_width=250)
|
268 |
starter_buttons = [starter_btn1, starter_btn2, starter_btn3]
|
269 |
|
270 |
# Simplified update function
|
|
|
208 |
display: flex;
|
209 |
align-items: center;
|
210 |
}
|
211 |
+
.compact-btn {
|
212 |
+
padding: 0.5rem !important;
|
213 |
+
min-height: 0 !important;
|
214 |
+
height: auto !important;
|
215 |
+
line-height: 1.2 !important;
|
216 |
+
}
|
217 |
"""
|
218 |
|
219 |
with gr.Blocks(theme=gr.themes.Soft(), css=custom_css) as demo:
|
|
|
268 |
gr.Markdown("## Story Starters")
|
269 |
|
270 |
# Create three placeholder buttons for story starters
|
271 |
+
starter_btn1 = gr.Button("Starter 1", scale=1, min_width=250, elem_classes="compact-btn")
|
272 |
+
starter_btn2 = gr.Button("Starter 2", scale=1, min_width=250, elem_classes="compact-btn")
|
273 |
+
starter_btn3 = gr.Button("Starter 3", scale=1, min_width=250, elem_classes="compact-btn")
|
274 |
starter_buttons = [starter_btn1, starter_btn2, starter_btn3]
|
275 |
|
276 |
# Simplified update function
|