refactor(ui): remove redundant sidebar Settings button (File > Settings… remains)
This commit is contained in:
parent
18eb25b70d
commit
b453681898
2 changed files with 6 additions and 5 deletions
|
|
@ -164,8 +164,8 @@ export function createSettingsFeature(ctx: BookCtx): SettingsFeature {
|
||||||
if (e.key === "Escape" && !modal.classList.contains("hidden")) closeSettings();
|
if (e.key === "Escape" && !modal.classList.contains("hidden")) closeSettings();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Sidebar + File-menu entry points.
|
// File-menu entry point (the redundant sidebar button was removed Sep 22).
|
||||||
$("settingsBtn")?.addEventListener("click", openSettings);
|
$("settingCheckUpdate")?.addEventListener("click", () => hooks.checkForUpdates());
|
||||||
api.onSettingsRequested(() => openSettings());
|
api.onSettingsRequested(() => openSettings());
|
||||||
|
|
||||||
// Refresh the resolved-path line whenever a book opens (the default root
|
// Refresh the resolved-path line whenever a book opens (the default root
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="sidebar-footer">
|
<div class="sidebar-footer">
|
||||||
<button class="button button-ghost" id="searchBtn" title="Search all chapters (Ctrl+F)">Search</button>
|
<button class="button button-ghost" id="searchBtn" title="Search all chapters (Ctrl+F)">Search</button>
|
||||||
<button class="button button-ghost" id="settingsBtn" title="Settings (autosave, backups)">Settings</button>
|
|
||||||
<div class="theme-control">
|
<div class="theme-control">
|
||||||
<label class="theme-label" for="themeSelect">Theme</label>
|
<label class="theme-label" for="themeSelect">Theme</label>
|
||||||
<select id="themeSelect" class="theme-select" title="Interface theme">
|
<select id="themeSelect" class="theme-select" title="Interface theme">
|
||||||
|
|
@ -57,8 +56,6 @@
|
||||||
<div class="welcome-actions">
|
<div class="welcome-actions">
|
||||||
<button class="button" id="welcomeNewBook">New</button>
|
<button class="button" id="welcomeNewBook">New</button>
|
||||||
<button class="button button-ghost" id="welcomeOpenBook">Open</button>
|
<button class="button button-ghost" id="welcomeOpenBook">Open</button>
|
||||||
<button class="button button-ghost" id="welcomeOpenMd" title="Open a Markdown or text file as a new book">Open file</button>
|
|
||||||
<button class="button button-ghost" id="welcomeUpdate" title="Check for a new version of Folio">Update</button>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="recents-block">
|
<div class="recents-block">
|
||||||
<div class="recents-title">Recent</div>
|
<div class="recents-title">Recent</div>
|
||||||
|
|
@ -351,6 +348,10 @@
|
||||||
</div>
|
</div>
|
||||||
<p class="setting-meta" id="settingResolved"></p>
|
<p class="setting-meta" id="settingResolved"></p>
|
||||||
<p class="setting-meta" id="settingLastSnap"></p>
|
<p class="setting-meta" id="settingLastSnap"></p>
|
||||||
|
<div class="update-control">
|
||||||
|
<span class="backup-label">Updates</span>
|
||||||
|
<button type="button" class="button button-ghost" id="settingCheckUpdate" title="Check for a new version of Folio">Check now</button>
|
||||||
|
</div>
|
||||||
<div class="modal-actions">
|
<div class="modal-actions">
|
||||||
<button class="button button-ghost" id="settingSnapNow" title="Take a snapshot right now">Snapshot now</button>
|
<button class="button button-ghost" id="settingSnapNow" title="Take a snapshot right now">Snapshot now</button>
|
||||||
<button class="button" id="settingsClose">Close</button>
|
<button class="button" id="settingsClose">Close</button>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue