mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +02:00
client/global menu: reduce the width of the "Download update" menu item
This commit is contained in:
parent
4a359ffa0e
commit
b6788298b5
@ -647,7 +647,9 @@
|
|||||||
"logout": "Logout",
|
"logout": "Logout",
|
||||||
"show-cheatsheet": "Show Cheatsheet",
|
"show-cheatsheet": "Show Cheatsheet",
|
||||||
"toggle-zen-mode": "Zen Mode",
|
"toggle-zen-mode": "Zen Mode",
|
||||||
"update_available": "Version {{latestVersion}} is available, click to download."
|
"update_available": "Version {{latestVersion}} is available, click to download.",
|
||||||
|
"new-version-available": "New Update Available",
|
||||||
|
"download-update": "Get Version {{latestVersion}}"
|
||||||
},
|
},
|
||||||
"zen_mode": {
|
"zen_mode": {
|
||||||
"button_exit": "Exit Zen Mode"
|
"button_exit": "Exit Zen Mode"
|
||||||
|
@ -3,7 +3,7 @@ import "./global_menu.css";
|
|||||||
import { useStaticTooltip, useStaticTooltipWithKeyboardShortcut, useTriliumOption, useTriliumOptionBool, useTriliumOptionInt } from "../react/hooks";
|
import { useStaticTooltip, useStaticTooltipWithKeyboardShortcut, useTriliumOption, useTriliumOptionBool, useTriliumOptionInt } from "../react/hooks";
|
||||||
import { useContext, useEffect, useRef, useState } from "preact/hooks";
|
import { useContext, useEffect, useRef, useState } from "preact/hooks";
|
||||||
import { t } from "../../services/i18n";
|
import { t } from "../../services/i18n";
|
||||||
import { FormDropdownDivider, FormDropdownSubmenu, FormListItem } from "../react/FormList";
|
import { FormDropdownDivider, FormDropdownSubmenu, FormListHeader, FormListItem } from "../react/FormList";
|
||||||
import { CommandNames } from "../../components/app_context";
|
import { CommandNames } from "../../components/app_context";
|
||||||
import KeyboardShortcut from "../react/KeyboardShortcut";
|
import KeyboardShortcut from "../react/KeyboardShortcut";
|
||||||
import { KeyboardActionNames } from "@triliumnext/commons";
|
import { KeyboardActionNames } from "@triliumnext/commons";
|
||||||
@ -58,10 +58,14 @@ export default function GlobalMenu({ isHorizontalLayout }: { isHorizontalLayout:
|
|||||||
<KeyboardActionMenuItem command="showHelp" icon="bx bx-help-circle" text={t("global_menu.show_help")} />
|
<KeyboardActionMenuItem command="showHelp" icon="bx bx-help-circle" text={t("global_menu.show_help")} />
|
||||||
<KeyboardActionMenuItem command="showCheatsheet" icon="bx bxs-keyboard" text={t("global_menu.show-cheatsheet")} />
|
<KeyboardActionMenuItem command="showCheatsheet" icon="bx bxs-keyboard" text={t("global_menu.show-cheatsheet")} />
|
||||||
<MenuItem command="openAboutDialog" icon="bx bx-info-circle" text={t("global_menu.about")} />
|
<MenuItem command="openAboutDialog" icon="bx bx-info-circle" text={t("global_menu.about")} />
|
||||||
|
|
||||||
{isUpdateAvailable && <>
|
{isUpdateAvailable && <>
|
||||||
<FormDropdownDivider />
|
<FormListHeader text={t("global_menu.new-version-available")} />
|
||||||
<MenuItem command={() => window.open("https://github.com/TriliumNext/Trilium/releases/latest")} icon="bx bx-download" text={t("global_menu.update_available", { latestVersion })} />
|
<MenuItem command={() => window.open("https://github.com/TriliumNext/Trilium/releases/latest")}
|
||||||
|
icon="bx bx-download"
|
||||||
|
text={t("global_menu.download-update", {latestVersion})} />
|
||||||
</>}
|
</>}
|
||||||
|
|
||||||
{!isElectron() && <BrowserOnlyOptions />}
|
{!isElectron() && <BrowserOnlyOptions />}
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user