mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
refac
This commit is contained in:
parent
b378ac1f57
commit
84289b9a8d
2 changed files with 28 additions and 12 deletions
|
|
@ -1657,7 +1657,10 @@ async def get_app_config(request: Request):
|
|||
"metadata": {
|
||||
"login_footer": app.state.LICENSE_METADATA.get(
|
||||
"login_footer", ""
|
||||
)
|
||||
),
|
||||
"auth_logo_position": app.state.LICENSE_METADATA.get(
|
||||
"auth_logo_position", ""
|
||||
),
|
||||
}
|
||||
}
|
||||
if app.state.LICENSE_METADATA
|
||||
|
|
|
|||
|
|
@ -206,6 +206,17 @@
|
|||
{:else}
|
||||
<div class="my-auto flex flex-col justify-center items-center">
|
||||
<div class=" sm:max-w-md my-auto pb-10 w-full dark:text-gray-100">
|
||||
{#if $config?.metadata?.auth_logo_position === 'center'}
|
||||
<div class="flex justify-center mb-6">
|
||||
<img
|
||||
id="logo"
|
||||
crossorigin="anonymous"
|
||||
src="{WEBUI_BASE_URL}/static/favicon.png"
|
||||
class="size-24 rounded-full"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
<form
|
||||
class=" flex flex-col justify-center"
|
||||
on:submit={(e) => {
|
||||
|
|
@ -529,6 +540,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{#if !$config?.metadata?.auth_logo_position}
|
||||
<div class="fixed m-10 z-50">
|
||||
<div class="flex space-x-2">
|
||||
<div class=" self-center">
|
||||
|
|
@ -543,4 +555,5 @@
|
|||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue