Add a button to show all content, if the zoom allows it. (#1406)
* add zoom center action button * enhance zoom calculation and scroll to center * add zoom out and center button * filter deleted elements * improve complexity * add key shortcut * calculate zoom value * don't render zoomCenter action * offset from top to account for shape menu * change shortcut & add to shortcut dialog * decrease offset * revert offset * change hotkey & description * rename to zoomToFit * change shortcut label & position Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
@ -228,6 +228,10 @@ export const ShortcutsDialog = ({ onClose }: { onClose?: () => void }) => {
|
||||
label={t("buttons.resetZoom")}
|
||||
shortcuts={[getShortcutKey("CtrlOrCmd+0")]}
|
||||
/>
|
||||
<Shortcut
|
||||
label={t("shortcutsDialog.zoomToFit")}
|
||||
shortcuts={["Shift+1"]}
|
||||
/>
|
||||
<Shortcut
|
||||
label={t("buttons.toggleFullScreen")}
|
||||
shortcuts={["F"]}
|
||||
|
Reference in New Issue
Block a user