the and Sider component (known as Layout.Sidebar in elm-antd) does not have a specification on how to respond to changing browser widths, and I think that makes sense.
The way it should be done is by registering a subscription for browser width resizing and then calling Layout.sidebarWidth with a new value at that point.
the and
Sider
component (known asLayout.Sidebar
inelm-antd
) does not have a specification on how to respond to changing browser widths, and I think that makes sense.The way it should be done is by registering a subscription for browser width resizing and then calling
Layout.sidebarWidth
with a new value at that point.https://github.com/greptail/elm-antd/blob/1bf22831662268d6fd6d6fed07e78f3da36e32f8/showcase/src/elm/Router.elm#L269
Desired outcome:
Layout.Sider
+Menu
with aDrawer
that can be toggled open with a button as displayed below.Ant.Icons.menuOutlined
)