From 1c4128b0b8e3a3c6d9ffc7ea4e56e29c34b27fb0 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Thu, 14 Sep 2023 15:30:44 -0400 Subject: [PATCH 1/5] feat(layout_column_wrap): Allow items to be smaller than min width avoid overflowing the parent container --- R/layout.R | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/R/layout.R b/R/layout.R index 593ce68ff..5eb24f52c 100644 --- a/R/layout.R +++ b/R/layout.R @@ -77,7 +77,10 @@ layout_column_wrap <- function( if (fixed_width) { paste0("repeat(auto-fit, ", validateCssUnit(width), ")") } else { - paste0("repeat(auto-fit, minmax(", validateCssUnit(width), ", 1fr))") + sprintf( + "repeat(auto-fit, minmax(min(%s, 100%%), 1fr))", + validateCssUnit(width) + ) } } } From bb4c5aa4a9473aa49ec6fa2d8218953aa91d40f3 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Thu, 19 Oct 2023 11:13:30 -0400 Subject: [PATCH 2/5] docs: Add news item --- NEWS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS.md b/NEWS.md index 65b012a74..9cd6e3f9b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -42,6 +42,8 @@ * `layout_sidebar()` now uses an `