web/settings: add an option to hide the remux tab on mobile

This commit is contained in:
wukko
2025-05-01 00:25:03 +06:00
parent a1e20ccc3e
commit a22e4c3cf9
5 changed files with 27 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
<script lang="ts">
import settings from "$lib/state/settings";
import { t } from "$lib/i18n/translations";
import { defaultNavPage } from "$lib/subnav";
@@ -30,7 +32,9 @@
<div id="sidebar-tabs" role="tablist">
<div id="sidebar-actions" class="sidebar-inner-container">
<SidebarTab name="save" path="/" icon={IconDownload} />
<SidebarTab name="remux" path="/remux" icon={IconRepeat} beta />
{#if !$settings.appearance.hideRemuxTab}
<SidebarTab name="remux" path="/remux" icon={IconRepeat} beta />
{/if}
</div>
<div id="sidebar-info" class="sidebar-inner-container">
<SidebarTab name="settings" path={settingsLink} icon={IconSettings} />