refac
This commit is contained in:
1 parent
2978a03c68
commit
06e7aac219
2 files changed
+15
-14
No files matched your search
@@ -607,8 +607,9 @@
|
|||||||
<!-- LICENSE covers this Open WebUI fallback logo.
|
<!-- LICENSE covers this Open WebUI fallback logo.
|
||||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||||
https://docs.openwebui.com/license. -->
|
https://docs.openwebui.com/license. -->
|
||||||
|
<div class="group relative size-12 shrink-0 md:size-14">
|
||||||
<button
|
<button
|
||||||
class="group relative flex size-12 shrink-0 items-center overflow-hidden rounded-xl md:size-14 {info
|
class="group relative flex size-full items-center overflow-hidden rounded-xl {info
|
||||||
.meta.profile_image_url !== `${WEBUI_BASE_URL}/static/favicon.png`
|
.meta.profile_image_url !== `${WEBUI_BASE_URL}/static/favicon.png`
|
||||||
? 'bg-transparent'
|
? 'bg-transparent'
|
||||||
: 'bg-gray-50 dark:bg-gray-850'} ring-1 ring-gray-200/70 transition hover:ring-gray-300 dark:ring-white/10 dark:hover:ring-white/20"
|
: 'bg-gray-50 dark:bg-gray-850'} ring-1 ring-gray-200/70 transition hover:ring-gray-300 dark:ring-white/10 dark:hover:ring-white/20"
|
||||||
@@ -660,6 +661,19 @@
|
|||||||
></div>
|
></div>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
{#if info.meta.profile_image_url && info.meta.profile_image_url !== `${WEBUI_BASE_URL}/static/favicon.png`}
|
||||||
|
<button
|
||||||
|
class="absolute left-1/2 top-full mt-1 -translate-x-1/2 text-[0.5rem] leading-none text-gray-400 opacity-0 transition group-hover:opacity-60 hover:text-gray-500 hover:opacity-100 group-focus-within:opacity-60 dark:text-gray-600 dark:hover:text-gray-400"
|
||||||
|
on:click={() => {
|
||||||
|
info.meta.profile_image_url = `${WEBUI_BASE_URL}/static/favicon.png`;
|
||||||
|
}}
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
{$i18n.t('Reset')}</button
|
||||||
|
>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="min-w-0 flex-1">
|
<div class="min-w-0 flex-1">
|
||||||
<div class="flex min-w-0 items-center gap-2">
|
<div class="flex min-w-0 items-center gap-2">
|
||||||
<input
|
<input
|
||||||
@@ -687,18 +701,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex w-full -mt-1">
|
|
||||||
<button
|
|
||||||
class="px-2 py-1 text-gray-500 rounded-lg text-xs"
|
|
||||||
on:click={() => {
|
|
||||||
info.meta.profile_image_url = `${WEBUI_BASE_URL}/static/favicon.png`;
|
|
||||||
}}
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
{$i18n.t('Reset Image')}</button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{#if preset}
|
{#if preset}
|
||||||
<div>
|
<div>
|
||||||
<div class="mb-1 text-xs text-gray-400 dark:text-gray-600">
|
<div class="mb-1 text-xs text-gray-400 dark:text-gray-600">
|
||||||
|
|||||||
@@ -2224,7 +2224,6 @@
|
|||||||
"Reset all permissions to their initial configuration values": "",
|
"Reset all permissions to their initial configuration values": "",
|
||||||
"Reset Defaults": "",
|
"Reset Defaults": "",
|
||||||
"Reset group permissions to match the current default user permissions": "",
|
"Reset group permissions to match the current default user permissions": "",
|
||||||
"Reset Image": "",
|
|
||||||
"Reset knowledge base?": "",
|
"Reset knowledge base?": "",
|
||||||
"Reset persisted files": "",
|
"Reset persisted files": "",
|
||||||
"Reset to Defaults": "",
|
"Reset to Defaults": "",
|
||||||
|
|||||||
Reference in new issue
Block a user