Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -201,6 +201,12 @@ css = """
|
|
| 201 |
border-color: white !important;
|
| 202 |
box-shadow: 0 0 5px white inset;
|
| 203 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
"""
|
| 205 |
|
| 206 |
with gr.Blocks() as interface:
|
|
@@ -304,7 +310,7 @@ with gr.Blocks() as interface:
|
|
| 304 |
|
| 305 |
# nps_submit = gr.Button("Submit", elem_id="nps-submit-button")
|
| 306 |
# nps_output = gr.Textbox(label="", interactive=False, visible=True)
|
| 307 |
-
|
| 308 |
with gr.Group(visible=True, elem_id="nps-overlay") as nps_modal:
|
| 309 |
with gr.Group(elem_id="nps-container"):
|
| 310 |
gr.Markdown("### How likely are you to recommend this tool to a colleague or peer?")
|
|
|
|
| 201 |
border-color: white !important;
|
| 202 |
box-shadow: 0 0 5px white inset;
|
| 203 |
}
|
| 204 |
+
#nps-radio-container .wrap {
|
| 205 |
+
display: grid !important;
|
| 206 |
+
grid-template-columns: repeat(11, 1fr); /* 11 equal slots */
|
| 207 |
+
gap: 8px; /* spacing between buttons */
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
"""
|
| 211 |
|
| 212 |
with gr.Blocks() as interface:
|
|
|
|
| 310 |
|
| 311 |
# nps_submit = gr.Button("Submit", elem_id="nps-submit-button")
|
| 312 |
# nps_output = gr.Textbox(label="", interactive=False, visible=True)
|
| 313 |
+
|
| 314 |
with gr.Group(visible=True, elem_id="nps-overlay") as nps_modal:
|
| 315 |
with gr.Group(elem_id="nps-container"):
|
| 316 |
gr.Markdown("### How likely are you to recommend this tool to a colleague or peer?")
|