Fix mobile setting categories

This commit is contained in:
WardPearce
2026-02-15 05:48:24 +13:00
parent 7d9215ab31
commit fae5184345
3 changed files with 25 additions and 33 deletions
@@ -37,10 +37,6 @@
}
]);
let tabIds: string[] = $state([]);
setTabIds();
if (isUnrestrictedPlatform()) {
tabs.splice(1, 0, {
id: 'engine',
@@ -50,12 +46,6 @@
});
}
function setTabIds() {
tabs.forEach((tab) => {
tabIds.push(tab.id);
});
}
rawMasterKeyStore.subscribe((value) => {
if (isOwnBackend()?.internalAuth && value) {
tabs.splice(1, 0, {
@@ -69,8 +59,6 @@
return tab.id !== 'account';
});
}
setTabIds();
});
let dialogType = $state('');
@@ -129,25 +117,29 @@
<div style="height: 100%;">
<nav class="wrap s">
{#if tabIds}
<button class="large small-round surface-container-highest max" data-ui="#tab-menu">
<i>{tabs[tabIds.indexOf(activeTab)]?.icon}</i>
<span>{tabs[tabIds.indexOf(activeTab)]?.label}</span>
<menu style="width: 100%;" data-ui="#tab-menu" id="tab-menu">
{#each tabs as tab (tab)}
<li
onclick={() => {
activeTab = tab.id;
}}
role="presentation"
data-ui="#tab-menu"
>
<i>{tab.icon}</i>
<span>{tab.label}</span>
</li>
{/each}
</menu>
</button>
{#if tabs}
{@const currentTab = tabs.find((tab) => tab.id === activeTab)}
{#if currentTab}
<button class="large small-round surface-container-highest max" data-ui="#tab-menu">
<i>{currentTab.icon}</i>
<span>{currentTab.label}</span>
<menu style="width: 100%;" data-ui="#tab-menu" id="tab-menu">
{#each tabs as tab (tab)}
<li
onclick={() => {
activeTab = tab.id;
}}
role="presentation"
data-ui="#tab-menu"
>
<i>{tab.icon}</i>
<span>{tab.label}</span>
</li>
{/each}
</menu>
</button>
{/if}
{/if}
</nav>
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -3,7 +3,7 @@ import os
import re
from datetime import datetime
LATEST_VERSION = "1.15.1"
LATEST_VERSION = "1.15.2"
RELEASE_DATE = datetime.now().strftime("%Y-%-m-%d") # Format: YYYY-M-D
WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious")