hisownspace / slacker

0 stars 0 forks source link

implement snap to fit-content (and snap to max-width?)for sidebar #20

Open hisownspace opened 5 months ago

hisownspace commented 5 months ago

right now, the sidebar snaps to zero when resizing with mouse. it would be nice to have similar behavior when the sidebar is about the width of the text contained in it. it should be possible by examining the actual width (there's no direct way to check if we're near "fit-content" width) of the child elements. this could also be possible for the largest possible size for the sidebar (though the desirability somewhat in question).