col_widths = c(12, 6, 6) now becomes col_widths = breakpoints(sm = c(12, 6, 6)) where we previously used md as the default breakpoint. This update aligns with the intuitive expectation that col_widths of a single value is the column widths at all breakpoints (except mobile where we do something completely different).
While here I noticed that we actually do need to include the xs-specific CSS variable when it's not the only variable being set. Without this change the row_heights = breakpoints(xs = ..., sm = ...) doesn't work as expected.
Fixes two issues with
layout_columns()
:col_widths = c(12, 6, 6)
now becomescol_widths = breakpoints(sm = c(12, 6, 6))
where we previously usedmd
as the default breakpoint. This update aligns with the intuitive expectation thatcol_widths
of a single value is the column widths at all breakpoints (except mobile where we do something completely different).While here I noticed that we actually do need to include the
xs
-specific CSS variable when it's not the only variable being set. Without this change therow_heights = breakpoints(xs = ..., sm = ...)
doesn't work as expected.Example app
Current behavior on shinylive.io.