You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hacking together something at the moment which parses the persisted localStorage state of a SplitterGroup to get the current width of a SplitterPanel, then calculating another value based on it + the Shadcn --sidebar-width CSS variable.
Has anyone got a better pattern to use here?
Happy to open something in Ideas re: reading from/writing to CSS variables in SplitterGroup if that's a better way forward.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm hacking together something at the moment which parses the persisted localStorage state of a SplitterGroup to get the current width of a SplitterPanel, then calculating another value based on it + the Shadcn --sidebar-width CSS variable.
Has anyone got a better pattern to use here?
Happy to open something in Ideas re: reading from/writing to CSS variables in SplitterGroup if that's a better way forward.
Beta Was this translation helpful? Give feedback.
All reactions