mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
outline-hidden depend on high contrast mode
This commit is contained in:
parent
d1677635a5
commit
75883dc835
@ -73,7 +73,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<SensitiveInput
|
<SensitiveInput
|
||||||
inputClassName=" outline-hidden bg-transparent w-full"
|
inputClassName="bg-transparent w-full"
|
||||||
placeholder={$i18n.t('API Key')}
|
placeholder={$i18n.t('API Key')}
|
||||||
bind:value={key}
|
bind:value={key}
|
||||||
/>
|
/>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
const i18n = getContext('i18n');
|
const i18n = getContext('i18n');
|
||||||
import { getContext } from 'svelte';
|
import { getContext } from 'svelte';
|
||||||
|
import { settings } from '$lib/stores';
|
||||||
export let value: string = '';
|
export let value: string = '';
|
||||||
export let placeholder = '';
|
export let placeholder = '';
|
||||||
export let required = true;
|
export let required = true;
|
||||||
@ -16,7 +17,7 @@
|
|||||||
<div class={outerClassName}>
|
<div class={outerClassName}>
|
||||||
<label class="sr-only" for="password-input">{placeholder || $i18n.t('Password')}</label>
|
<label class="sr-only" for="password-input">{placeholder || $i18n.t('Password')}</label>
|
||||||
<input
|
<input
|
||||||
class={`${inputClassName} ${show ? '' : 'password'}`}
|
class={`${inputClassName} ${show ? '' : 'password'} ${($settings?.highContrastMode ?? false) ? '' : ' outline-hidden'}`}
|
||||||
{placeholder}
|
{placeholder}
|
||||||
id="password-input"
|
id="password-input"
|
||||||
bind:value
|
bind:value
|
||||||
|
Loading…
Reference in New Issue
Block a user