From 45866c17d3d90171bcaab512103ee10908fd4c6a Mon Sep 17 00:00:00 2001 From: simoleo89 Date: Sun, 14 Jun 2026 21:37:00 +0200 Subject: [PATCH] feat(toolbar): keep a core icon set when the left side is collapsed When the left collapse button is active, keep the core icons visible (catalog, avatar/me, builders club, inventory, camera) and hide only the secondary ones (habbo/home, rooms, game, rare-values, fortune-wheel, wired, youtube, soundboard, modtools, housekeeping, furni-editor). --- src/components/toolbar/ToolbarView.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/toolbar/ToolbarView.tsx b/src/components/toolbar/ToolbarView.tsx index 5efdd59..9a26a5f 100644 --- a/src/components/toolbar/ToolbarView.tsx +++ b/src/components/toolbar/ToolbarView.tsx @@ -208,10 +208,10 @@ export const ToolbarView: FC<{ isInRoom: boolean }> = props => - { !leftCollapsed && + { !leftCollapsed && (<> { isInRoom ? VisitDesktop() } className="tb-icon" /> @@ -224,6 +224,7 @@ export const ToolbarView: FC<{ isInRoom: boolean }> = props => CreateLinkEvent('games/toggle') } className="tb-icon" /> } + ) } CreateLinkEvent('catalog/toggle/normal') } className="tb-icon" /> @@ -261,6 +262,7 @@ export const ToolbarView: FC<{ isInRoom: boolean }> = props => { (getFullCount > 0) && } + { !leftCollapsed && (<> CreateLinkEvent('rare-values/toggle') } className="tb-icon" /> @@ -271,10 +273,12 @@ export const ToolbarView: FC<{ isInRoom: boolean }> = props => } + ) } { isInRoom && CreateLinkEvent('camera/toggle') } className="tb-icon" /> } + { !leftCollapsed && (<> { (isInRoom && youtubeEnabled) && @@ -297,7 +301,8 @@ export const ToolbarView: FC<{ isInRoom: boolean }> = props => CreateLinkEvent('furni-editor/toggle') } className="tb-icon" /> } - } + ) } +