|
@@ -378,14 +378,14 @@
|
|
<div class="flex flex-col md:flex-row w-full px-4 pt-1 pb-4 md:space-x-4">
|
|
<div class="flex flex-col md:flex-row w-full px-4 pt-1 pb-4 md:space-x-4">
|
|
<div
|
|
<div
|
|
id="settings-tabs-container"
|
|
id="settings-tabs-container"
|
|
- class="tabs flex flex-row overflow-x-auto space-x-1 md:space-x-0 md:space-y-1 md:flex-col flex-1 md:flex-none md:w-40 dark:text-gray-200 text-xs text-left mb-1 md:mb-0 -translate-y-1"
|
|
|
|
|
|
+ class="tabs flex flex-row overflow-x-auto space-x-1 md:space-x-0 md:space-y-1 md:flex-col flex-1 md:flex-none md:w-40 dark:text-gray-200 text-sm font-medium text-left mb-1 md:mb-0 -translate-y-1"
|
|
>
|
|
>
|
|
- <div class="hidden md:flex w-full rounded-xl px-1 -py-0.5 gap-2" id="settings-search">
|
|
|
|
|
|
+ <div class="hidden md:flex w-full rounded-xl -my-0.5 gap-2" id="settings-search">
|
|
<div class="self-center rounded-l-xl bg-transparent">
|
|
<div class="self-center rounded-l-xl bg-transparent">
|
|
<Search className="size-3.5" />
|
|
<Search className="size-3.5" />
|
|
</div>
|
|
</div>
|
|
<input
|
|
<input
|
|
- class="w-full py-1.5 text-xs bg-transparent dark:text-gray-300 outline-none"
|
|
|
|
|
|
+ class="w-full py-1.5 text-sm bg-transparent dark:text-gray-300 outline-none"
|
|
bind:value={search}
|
|
bind:value={search}
|
|
on:input={searchDebounceHandler}
|
|
on:input={searchDebounceHandler}
|
|
placeholder={$i18n.t('Search')}
|
|
placeholder={$i18n.t('Search')}
|
|
@@ -396,10 +396,10 @@
|
|
{#each visibleTabs as tabId (tabId)}
|
|
{#each visibleTabs as tabId (tabId)}
|
|
{#if tabId === 'general'}
|
|
{#if tabId === 'general'}
|
|
<button
|
|
<button
|
|
- class="px-2.5 py-2 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
|
|
|
|
+ class="px-0.5 py-1 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
'general'
|
|
'general'
|
|
- ? 'bg-gray-100 dark:bg-gray-800'
|
|
|
|
- : ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
|
|
|
|
|
+ ? ''
|
|
|
|
+ : ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
selectedTab = 'general';
|
|
selectedTab = 'general';
|
|
}}
|
|
}}
|
|
@@ -422,10 +422,10 @@
|
|
</button>
|
|
</button>
|
|
{:else if tabId === 'interface'}
|
|
{:else if tabId === 'interface'}
|
|
<button
|
|
<button
|
|
- class="px-2.5 py-2 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
|
|
|
|
+ class="px-0.5 py-1 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
'interface'
|
|
'interface'
|
|
- ? 'bg-gray-100 dark:bg-gray-800'
|
|
|
|
- : ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
|
|
|
|
|
+ ? ''
|
|
|
|
+ : ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
selectedTab = 'interface';
|
|
selectedTab = 'interface';
|
|
}}
|
|
}}
|
|
@@ -448,10 +448,10 @@
|
|
</button>
|
|
</button>
|
|
{:else if tabId === 'personalization'}
|
|
{:else if tabId === 'personalization'}
|
|
<button
|
|
<button
|
|
- class="px-2.5 py-2 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
|
|
|
|
+ class="px-0.5 py-1 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
'personalization'
|
|
'personalization'
|
|
- ? 'bg-gray-100 dark:bg-gray-800'
|
|
|
|
- : ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
|
|
|
|
|
+ ? ''
|
|
|
|
+ : ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
selectedTab = 'personalization';
|
|
selectedTab = 'personalization';
|
|
}}
|
|
}}
|
|
@@ -463,10 +463,10 @@
|
|
</button>
|
|
</button>
|
|
{:else if tabId === 'audio'}
|
|
{:else if tabId === 'audio'}
|
|
<button
|
|
<button
|
|
- class="px-2.5 py-2 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
|
|
|
|
+ class="px-0.5 py-1 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
'audio'
|
|
'audio'
|
|
- ? 'bg-gray-100 dark:bg-gray-800'
|
|
|
|
- : ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
|
|
|
|
|
+ ? ''
|
|
|
|
+ : ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
selectedTab = 'audio';
|
|
selectedTab = 'audio';
|
|
}}
|
|
}}
|
|
@@ -490,10 +490,10 @@
|
|
</button>
|
|
</button>
|
|
{:else if tabId === 'chats'}
|
|
{:else if tabId === 'chats'}
|
|
<button
|
|
<button
|
|
- class="px-2.5 py-2 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
|
|
|
|
+ class="px-0.5 py-1 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
'chats'
|
|
'chats'
|
|
- ? 'bg-gray-100 dark:bg-gray-800'
|
|
|
|
- : ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
|
|
|
|
|
+ ? ''
|
|
|
|
+ : ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
selectedTab = 'chats';
|
|
selectedTab = 'chats';
|
|
}}
|
|
}}
|
|
@@ -516,10 +516,10 @@
|
|
</button>
|
|
</button>
|
|
{:else if tabId === 'account'}
|
|
{:else if tabId === 'account'}
|
|
<button
|
|
<button
|
|
- class="px-2.5 py-2 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
|
|
|
|
+ class="px-0.5 py-1 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
'account'
|
|
'account'
|
|
- ? 'bg-gray-100 dark:bg-gray-800'
|
|
|
|
- : ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
|
|
|
|
|
+ ? ''
|
|
|
|
+ : ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
selectedTab = 'account';
|
|
selectedTab = 'account';
|
|
}}
|
|
}}
|
|
@@ -542,10 +542,10 @@
|
|
</button>
|
|
</button>
|
|
{:else if tabId === 'about'}
|
|
{:else if tabId === 'about'}
|
|
<button
|
|
<button
|
|
- class="px-2.5 py-2 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
|
|
|
|
+ class="px-0.5 py-1 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
'about'
|
|
'about'
|
|
- ? 'bg-gray-100 dark:bg-gray-800'
|
|
|
|
- : ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
|
|
|
|
|
+ ? ''
|
|
|
|
+ : ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
selectedTab = 'about';
|
|
selectedTab = 'about';
|
|
}}
|
|
}}
|
|
@@ -569,10 +569,10 @@
|
|
{:else if tabId === 'admin'}
|
|
{:else if tabId === 'admin'}
|
|
{#if $user.role === 'admin'}
|
|
{#if $user.role === 'admin'}
|
|
<button
|
|
<button
|
|
- class="px-2.5 py-2 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
|
|
|
|
+ class="px-0.5 py-1 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
'admin'
|
|
'admin'
|
|
- ? 'bg-gray-100 dark:bg-gray-800'
|
|
|
|
- : ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
|
|
|
|
|
+ ? ''
|
|
|
|
+ : ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
|
on:click={async () => {
|
|
on:click={async () => {
|
|
await goto('/admin/settings');
|
|
await goto('/admin/settings');
|
|
show = false;
|
|
show = false;
|