From a22e4c3cf95aa2bedb703f201f1c81d6e5e369ea Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 1 May 2025 00:25:03 +0600 Subject: [PATCH] web/settings: add an option to hide the remux tab on mobile --- web/i18n/en/settings.json | 6 +++++- web/src/components/sidebar/Sidebar.svelte | 6 +++++- web/src/lib/settings/defaults.ts | 1 + web/src/lib/types/settings/v5.ts | 4 +++- web/src/routes/settings/appearance/+page.svelte | 13 +++++++++++++ 5 files changed, 27 insertions(+), 3 deletions(-) diff --git a/web/i18n/en/settings.json b/web/i18n/en/settings.json index 3e1d11cf..849bf3da 100644 --- a/web/i18n/en/settings.json +++ b/web/i18n/en/settings.json @@ -144,5 +144,9 @@ "local.webcodecs": "webcodecs", "local.webcodecs.title": "use webcodecs for on-device processing", - "local.webcodecs.description": "when decoding or encoding files, cobalt will try to use webcodecs. this feature allows for GPU-accelerated processing of media files, meaning that all decoding & encoding will be way faster.\n\navailability and stability of this feature depends on your device's and browser's capabilities. stuff might break or not work properly." + "local.webcodecs.description": "when decoding or encoding files, cobalt will try to use webcodecs. this feature allows for GPU-accelerated processing of media files, meaning that all decoding & encoding will be way faster.\n\navailability and stability of this feature depends on your device's and browser's capabilities. stuff might break or not work properly.", + + "tabs": "navigation", + "tabs.hide_remux": "hide the remux tab", + "tabs.hide_remux.description": "if you don't use the remux tool, you can hide it from the navigation bar." } diff --git a/web/src/components/sidebar/Sidebar.svelte b/web/src/components/sidebar/Sidebar.svelte index e799b015..0c692731 100644 --- a/web/src/components/sidebar/Sidebar.svelte +++ b/web/src/components/sidebar/Sidebar.svelte @@ -1,4 +1,6 @@