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