Skip to content

Commit cecc674

Browse files
committed
Hide theme icon in collapsed sidebar
1 parent 428bb7f commit cecc674

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/app/components/Sidebar/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,13 @@ function Sidebar() {
8484
</a>
8585
</Tooltip>
8686
)}
87-
<Tooltip content={t('Theme')}>
88-
<a onClick={() => setThemeSettingModalOpen(true)}>
89-
<IconButton icon={themeIcon} />
90-
</a>
91-
</Tooltip>
87+
{!collapsed && (
88+
<Tooltip content={t('Theme')}>
89+
<a onClick={() => setThemeSettingModalOpen(true)}>
90+
<IconButton icon={themeIcon} />
91+
</a>
92+
</Tooltip>
93+
)}
9294
<Tooltip content={t('Settings')}>
9395
<Link to="/setting">
9496
<IconButton icon={settingIcon} />

0 commit comments

Comments
 (0)