refac
This commit is contained in:
@@ -24,6 +24,9 @@
|
||||
|
||||
let loading = false;
|
||||
|
||||
const highContrastInputClass =
|
||||
'rounded-lg border border-gray-100/50 bg-gray-50/40 px-2 py-1.5 text-gray-700 outline-hidden transition-colors placeholder:text-gray-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-gray-300 dark:placeholder:text-gray-700 dark:focus:border-blue-500';
|
||||
|
||||
const submitHandler = async () => {
|
||||
loading = true;
|
||||
const res = await updateUserStatus(localStorage.token, {
|
||||
@@ -123,7 +126,7 @@
|
||||
id="status-message"
|
||||
type="text"
|
||||
bind:value={message}
|
||||
class={`w-full flex-1 text-sm bg-transparent ${($settings?.highContrastMode ?? false) ? 'placeholder:text-gray-700 dark:placeholder:text-gray-100' : 'outline-hidden placeholder:text-gray-300 dark:placeholder:text-gray-700'}`}
|
||||
class={`w-full flex-1 text-sm ${($settings?.highContrastMode ?? false) ? highContrastInputClass : 'bg-transparent outline-hidden placeholder:text-gray-300 dark:placeholder:text-gray-700'}`}
|
||||
placeholder={$i18n.t("What's on your mind?")}
|
||||
autocomplete="off"
|
||||
required
|
||||
|
||||
Reference in New Issue
Block a user