refac: styling
This commit is contained in:
1 parent
a1d09eae95
commit
88416161cc
1 file changed
+24
-24
@@ -374,25 +374,6 @@
|
|||||||
<div>
|
<div>
|
||||||
<h1 class=" mb-2 text-sm font-medium">{$i18n.t('UI')}</h1>
|
<h1 class=" mb-2 text-sm font-medium">{$i18n.t('UI')}</h1>
|
||||||
|
|
||||||
<div>
|
|
||||||
<div class=" py-0.5 flex w-full justify-between">
|
|
||||||
<div id="high-contrast-mode-label" class=" self-center text-xs">
|
|
||||||
{$i18n.t('High Contrast Mode')} ({$i18n.t('Beta')})
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-center gap-2 p-1">
|
|
||||||
<Switch
|
|
||||||
ariaLabelledbyId="high-contrast-mode-label"
|
|
||||||
tooltip={true}
|
|
||||||
bind:state={highContrastMode}
|
|
||||||
on:change={() => {
|
|
||||||
saveSettings({ highContrastMode });
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="py-0.5">
|
<div class="py-0.5">
|
||||||
<div class="flex w-full justify-between">
|
<div class="flex w-full justify-between">
|
||||||
@@ -400,7 +381,7 @@
|
|||||||
{$i18n.t('UI Scale')}
|
{$i18n.t('UI Scale')}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="flex items-center gap-1 text-xs" aria-live="polite">
|
<div class="flex items-center gap-1 text-xs px-1" aria-live="polite">
|
||||||
<span>{textScaleDisplay}x</span>
|
<span>{textScaleDisplay}x</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -408,7 +389,7 @@
|
|||||||
<div class="mt-2 flex items-center gap-2 pl-1 pr-1">
|
<div class="mt-2 flex items-center gap-2 pl-1 pr-1">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="rounded-sm p-1 transition outline outline-1 outline-gray-200 hover:bg-gray-100 dark:outline-gray-700 dark:hover:bg-gray-800"
|
class="rounded-lg p-1 transition outline-gray-200 hover:bg-gray-100 dark:outline-gray-700 dark:hover:bg-gray-800"
|
||||||
on:click={decreaseTextScale}
|
on:click={decreaseTextScale}
|
||||||
aria-labelledby="ui-scale-label"
|
aria-labelledby="ui-scale-label"
|
||||||
aria-label={$i18n.t('Decrease UI Scale')}
|
aria-label={$i18n.t('Decrease UI Scale')}
|
||||||
@@ -416,10 +397,10 @@
|
|||||||
<Minus className="h-3.5 w-3.5" />
|
<Minus className="h-3.5 w-3.5" />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="flex-1">
|
<div class="flex-1 flex items-center">
|
||||||
<input
|
<input
|
||||||
id="ui-scale-slider"
|
id="ui-scale-slider"
|
||||||
class="w-full accent-black dark:accent-white"
|
class="w-full"
|
||||||
type="range"
|
type="range"
|
||||||
min={0}
|
min={0}
|
||||||
max={TEXT_SCALE_VALUES.length - 1}
|
max={TEXT_SCALE_VALUES.length - 1}
|
||||||
@@ -436,7 +417,7 @@
|
|||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="rounded-sm p-1 transition outline outline-1 outline-gray-200 hover:bg-gray-100 dark:outline-gray-700 dark:hover:bg-gray-800"
|
class="rounded-lg p-1 transition outline-gray-200 hover:bg-gray-100 dark:outline-gray-700 dark:hover:bg-gray-800"
|
||||||
on:click={increaseTextScale}
|
on:click={increaseTextScale}
|
||||||
aria-labelledby="ui-scale-label"
|
aria-labelledby="ui-scale-label"
|
||||||
aria-label={$i18n.t('Increase UI Scale')}
|
aria-label={$i18n.t('Increase UI Scale')}
|
||||||
@@ -447,6 +428,25 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div class=" py-0.5 flex w-full justify-between">
|
||||||
|
<div id="high-contrast-mode-label" class=" self-center text-xs">
|
||||||
|
{$i18n.t('High Contrast Mode')} ({$i18n.t('Beta')})
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-center gap-2 p-1">
|
||||||
|
<Switch
|
||||||
|
ariaLabelledbyId="high-contrast-mode-label"
|
||||||
|
tooltip={true}
|
||||||
|
bind:state={highContrastMode}
|
||||||
|
on:change={() => {
|
||||||
|
saveSettings({ highContrastMode });
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class=" py-0.5 flex w-full justify-between">
|
<div class=" py-0.5 flex w-full justify-between">
|
||||||
<div id="use-chat-title-as-tab-title-label" class=" self-center text-xs">
|
<div id="use-chat-title-as-tab-title-label" class=" self-center text-xs">
|
||||||
|
|||||||
Reference in new issue
Block a user