Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions shiny/ui/_layout_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def as_col_spec(
return None

if not isinstance(col_widths, Dict):
return {"md": validate_col_width(col_widths, n_kids, "md")}
return {"sm": validate_col_width(col_widths, n_kids, "sm")}

ret: BreakpointsOptional[int] = {}
col_widths_items = cast(BreakpointsSoft[int], col_widths).items()
Expand Down Expand Up @@ -259,12 +259,8 @@ def row_heights_attrs(
# Remove any None values from x
x_complete = {k: v for k, v in x.items() if v is not None}

# We use classes to activate CSS variables at the right breakpoints. Note: Mobile
# row height is derived from xs or defaults to auto in the CSS, so we don't need the
# class to activate it
classes = [
f"bslib-grid--row-heights--{brk}" for brk in x_complete.keys() if brk != "xs"
]
# We use classes to activate CSS variables at the right breakpoints.
classes = [f"bslib-grid--row-heights--{brk}" for brk in x_complete.keys()]

# Create CSS variables, treating numeric values as fractional units, passing strings
css_vars: Dict[str, str] = {}
Expand Down