From be471ca39bede333a968a7ca8402b8f87536700b Mon Sep 17 00:00:00 2001 From: simoleo89 Date: Sun, 14 Jun 2026 21:16:25 +0200 Subject: [PATCH] feat(toolbar): add two edge collapse buttons for the icon clusters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a tab button at the left and right outer edges of the desktop toolbar. The left one hides/shows the left action icons, the right one hides/shows the friends/right cluster — each independent, toggled with a chevron that flips direction. Styled as a semi-transparent gray edge tab matching the bar. --- src/components/toolbar/ToolbarView.tsx | 46 ++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/src/components/toolbar/ToolbarView.tsx b/src/components/toolbar/ToolbarView.tsx index 53b657e..d97d880 100644 --- a/src/components/toolbar/ToolbarView.tsx +++ b/src/components/toolbar/ToolbarView.tsx @@ -32,6 +32,8 @@ export const ToolbarView: FC<{ isInRoom: boolean }> = props => const { isInRoom } = props; const [ isMeExpanded, setMeExpanded ] = useState(false); const [ isTouchLayout, setIsTouchLayout ] = useState(false); + const [ leftCollapsed, setLeftCollapsed ] = useState(false); + const [ rightCollapsed, setRightCollapsed ] = useState(false); const [ staffStackBottom, setStaffStackBottom ] = useState(null); const [ useGuideTool, setUseGuideTool ] = useState(false); const [ youtubeEnabled, setYoutubeEnabled ] = useState(false); @@ -197,6 +199,16 @@ export const ToolbarView: FC<{ isInRoom: boolean }> = props => variants={ leftNavVariants } transition={ NAV_TRANSITION } className={ `tb-nav-clip fixed bottom-0 left-0 z-40 h-[52px] max-w-[calc(50vw-242px)] items-center pl-3 ${ desktopFlexClasses }` }> + + { !leftCollapsed && @@ -285,7 +297,7 @@ export const ToolbarView: FC<{ isInRoom: boolean }> = props => CreateLinkEvent('furni-editor/toggle') } className="tb-icon" /> } - + } = props => variants={ rightNavVariants } transition={ NAV_TRANSITION } className={ `tb-nav-clip fixed bottom-0 z-40 h-[52px] max-w-[calc(50vw-242px)] items-center pr-3 ${ desktopFlexClasses } ${ isInRoom ? 'right-0' : 'right-3' }` }> + { !rightCollapsed && @@ -313,7 +326,16 @@ export const ToolbarView: FC<{ isInRoom: boolean }> = props => }
- + } +