@@ -255,6 +255,7 @@ classes =
255255 , inputMultiline = "iml"
256256 , inputMultilineParent = "imlp"
257257 , inputMultilineFiller = "imlf"
258+ , inputMultilineWrapper = "implw"
258259
259260 -- link
260261 , link = "lnk"
@@ -1562,9 +1563,24 @@ baseSheet =
15621563 , Prop "width" "100%"
15631564 , Prop "background-color" "transparent"
15641565 ]
1566+ , Descriptor (dot classes.inputMultilineWrapper)
1567+ -- Get this.
1568+ -- This allows multiline input to anchor scrolling to the bottom of the node
1569+ -- when in a scrolling viewport, and the user is adding content.
1570+ --
1571+ -- How crazy is this solution?
1572+ -- [ Prop "display" "flex"
1573+ -- , Prop "flex-direction" "column-reverse"
1574+ -- ]
1575+ [ Descriptor "::after"
1576+ [ Prop "content" "''"
1577+ , Prop "overflow-anchor" "auto"
1578+ ]
1579+ ]
15651580 , Descriptor (dot classes.inputMultilineParent)
15661581 [ Prop "white-space" "pre-wrap"
15671582 , Prop "cursor" "text"
1583+ , Prop "overflow-anchor" "none"
15681584 , Child (dot classes.inputMultilineFiller)
15691585 [ Prop "white-space" "pre-wrap"
15701586 , Prop "color" "transparent"