From 4a01ee4f9e6eafdbcf8a826ab218842670768c9d Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sat, 4 Oct 2025 14:55:11 -0500 Subject: [PATCH] Prevent incorrect magnifying glass animations --- src/app/AppViewSwitcher.tsx | 123 +++++++++++++++++------------------- 1 file changed, 57 insertions(+), 66 deletions(-) diff --git a/src/app/AppViewSwitcher.tsx b/src/app/AppViewSwitcher.tsx index d54093c7..4b132a31 100644 --- a/src/app/AppViewSwitcher.tsx +++ b/src/app/AppViewSwitcher.tsx @@ -171,77 +171,68 @@ export default function AppViewSwitcher({ noPadding />} - {showSortControl && - - - {NAV_SORT_CONTROL === 'menu' - ? { - setIsSortMenuOpen(isOpen); - if (isOpen) { setIsAdminMenuOpen(false); } - }} - />} - tooltip={{ - ...!isSortMenuOpen && SHOW_KEYBOARD_SHORTCUT_TOOLTIPS && { - content: appText.sort.sort, - }, - }} - width="narrow" - noPadding - /> - : } - tooltip={{...SHOW_KEYBOARD_SHORTCUT_TOOLTIPS && { - content: isAscending - ? appText.sort.viewNewest - : appText.sort.viewOldest, - }}} - width="narrow" - noPadding - />} - - } - - } - onClick={() => setIsCommandKOpen?.(true)} - tooltip={{...SHOW_KEYBOARD_SHORTCUT_TOOLTIPS && { - content: appText.nav.search, - keyCommandModifier: KEY_COMMANDS.search[0], - keyCommand: KEY_COMMANDS.search[1], - }}} - width="narrow" - /> + + {NAV_SORT_CONTROL === 'menu' + ? { + setIsSortMenuOpen(isOpen); + if (isOpen) { setIsAdminMenuOpen(false); } + }} + />} + tooltip={{ + ...!isSortMenuOpen && SHOW_KEYBOARD_SHORTCUT_TOOLTIPS && { + content: appText.sort.sort, + }, + }} + width="narrow" + noPadding + /> + : } + tooltip={{...SHOW_KEYBOARD_SHORTCUT_TOOLTIPS && { + content: isAscending + ? appText.sort.viewNewest + : appText.sort.viewOldest, + }}} + width="narrow" + noPadding + />} + + } + onClick={() => setIsCommandKOpen?.(true)} + tooltip={{...SHOW_KEYBOARD_SHORTCUT_TOOLTIPS && { + content: appText.nav.search, + keyCommandModifier: KEY_COMMANDS.search[0], + keyCommand: KEY_COMMANDS.search[1], + }}} + width="narrow" + /> + ); }