Skip to content

Commit e173721

Browse files
committed
1fr -> minmax(0, 1fr) in column css
1 parent 2985a43 commit e173721

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/MarkdownSemantics/AST/Layout/Markdown.BlockColumns.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ extension Markdown
2020
override
2121
func emit(into binary:inout Markdown.BinaryEncoder)
2222
{
23+
// https://stackoverflow.com/questions/43311943/prevent-content-from-expanding-grid-items
2324
binary[.div]
2425
{
2526
$0[.class] = "columns"
2627
$0[.style] = """
27-
grid-template-columns: repeat(\(self.count ?? self.elements.count), 1fr);
28+
grid-template-columns: repeat(\(self.count ?? self.elements.count), minmax(0, 1fr));
2829
"""
2930
}
3031
content:

0 commit comments

Comments
 (0)