-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Input select has different margin-bottom if in panel_conditional when in cards #1255
Comments
Thanks @tnederlof! It turns out this is the result of two issues:
|
Here's another example, modified from @tnederlof's example, that shows the issue: App Codefrom shiny import App, render, ui
app_ui = ui.page_fillable(
ui.layout_columns(
ui.card(
ui.input_checkbox("checkbox", "Checkbox", True),
ui.input_select(
"select",
"Select an option below:",
{"1A": "Choice 1A", "1B": "Choice 1B", "1C": "Choice 1C"},
),
ui.p("Some text here.")
),
ui.card(
ui.input_checkbox("checkbox2", "Checkbox", True),
ui.panel_conditional("input.checkbox",
ui.input_select(
"select2",
"Select an option below:",
{"1A": "Choice 1A", "1B": "Choice 1B", "1C": "Choice 1C"},
),
),
ui.p("Some text here.")
),
),
)
def server(input, output, session):
pass
app = App(app_ui, server) |
This example also points out that Related #1128 |
Ah very interesting, thanks for checking! |
I noticed some weird spacing issues in an app I am developing (my inputs are all in cards).
It looks like my inputs that are not in any
ui.panel_conditional
have amargin-bottom: 0
from this CSS entry:However, inputs that are in a
ui.panel_conditional
have amargin-bottom: 1rem
from this CSS entry:As far as I can tell this happens on other inputs as well. It creates weird spacing when trying to use inputs one after another with some in conditionals and some not in conditionals.
I recreated a simple example here
The text was updated successfully, but these errors were encountered: