git.iko.soy/typeable/elm-ui
on master help sign in
resolves #190, resolves ##147 - While rows have flex-basis 0% which allows for the children of a row to default to their content size, this is apparently a different story for columns.

Safari has an issue if this is flex-basis: 0%, as it goes entirely to 0, instead of the expected content size.

commit22deccc2908de0f98e0dc4cde3709d7dc6363978 authorElm UI Automation <automation@elm-ui.com> dateSat 16 May 2020, 14:31 (6 years ago) parentdb8ff2b
1 file changed+6−7
src/Internal/Style.elm+6−7
src/Internal/Style.elm+6−7
@@ -1361,13 +1361,12 @@ baseSheet =
13611361 [ Prop "display" "flex"
13621362 , Prop "flex-direction" "column"
13631363 , Child (dot classes.any)
1364− [ Prop "flex-basis" "0%"
1365− , Descriptor (dot classes.heightExact)
1366− [ Prop "flex-basis" "auto"
1367− ]
1368− , Descriptor (dot classes.column)
1369− [ Prop "flex-basis" "auto"
1370− ]
1364+ -- *Note* - While rows have flex-basis 0%,
1365+ -- which allows for the children of a row to default to their content size
1366+ -- This apparently is a different story for columns.
1367+ -- Safari has an issue if this is flex-basis: 0%, as it goes entirely to 0,
1368+ -- instead of the expected content size.
1369+ [ Prop "flex-basis" "auto"
13711370 ]
13721371 , Child (dot classes.heightFill)
13731372 [ Prop "flex-grow" "100000"