fixup! (frontend) add wheel zoom shortcut hints to screen share controls

This commit is contained in:
Ovgodd
2026-09-09 10:52:59 +02:00
parent 1f66a136ec
commit bf222ecfae
@@ -88,7 +88,7 @@ export const ScreenShareZoomControls = ({
}
}, [containerRef])
const wheelShortcutVisual = isMacintosh() ? '⌘+scroll' : 'Ctrl+scroll'
const wheelShortcut = t(isMacintosh() ? 'wheelShortcutMac' : 'wheelShortcut')
return (
<div
@@ -161,7 +161,7 @@ export const ScreenShareZoomControls = ({
variant="primaryTextDark"
square
tooltip={t('zoomOutWithShortcut', {
shortcut: wheelShortcutVisual,
shortcut: wheelShortcut,
})}
aria-label={t('zoomOut')}
isDisabled={!isZoomed || !canZoomOut}
@@ -194,7 +194,7 @@ export const ScreenShareZoomControls = ({
size="sm"
variant="primaryTextDark"
square
tooltip={t('zoomInWithShortcut', { shortcut: wheelShortcutVisual })}
tooltip={t('zoomInWithShortcut', { shortcut: wheelShortcut })}
aria-label={t('zoomIn')}
isDisabled={!canZoomIn}
onPress={onZoomIn}