Bläddra i källkod

Merge pull request #16011 from open-webui/main

refac: styling
Tim Jaeryang Baek 2 månader sedan
förälder
incheckning
48d233abc6
1 ändrade filer med 17 tillägg och 14 borttagningar
  1. 17 14
      src/routes/auth/+page.svelte

+ 17 - 14
src/routes/auth/+page.svelte

@@ -172,28 +172,17 @@
 	}}
 />
 
-<div class="w-full h-screen max-h-[100dvh] text-white relative">
+<div class="w-full h-screen max-h-[100dvh] text-white relative" id="auth-page">
 	<div class="w-full h-full absolute top-0 left-0 bg-white dark:bg-black"></div>
 
 	<div class="w-full absolute top-0 left-0 right-0 h-8 drag-region" />
 
 	{#if loaded}
-		<div class="fixed m-10 z-50">
-			<div class="flex space-x-2">
-				<div class=" self-center">
-					<img
-						id="logo"
-						crossorigin="anonymous"
-						src="{WEBUI_BASE_URL}/static/favicon.png"
-						class=" w-6 rounded-full"
-						alt=""
-					/>
-				</div>
-			</div>
-		</div>
+		
 
 		<div
 			class="fixed bg-transparent min-h-screen w-full flex justify-center font-primary z-50 text-black dark:text-white"
+			id="auth-container"
 		>
 			<div class="w-full px-10 min-h-screen flex flex-col text-center">
 				{#if ($config?.features.auth_trusted_header ?? false) || $config?.features.auth === false}
@@ -515,5 +504,19 @@
 				{/if}
 			</div>
 		</div>
+
+		<div class="fixed m-10 z-50">
+			<div class="flex space-x-2">
+				<div class=" self-center">
+					<img
+						id="logo"
+						crossorigin="anonymous"
+						src="{WEBUI_BASE_URL}/static/favicon.png"
+						class=" w-6 rounded-full"
+						alt=""
+					/>
+				</div>
+			</div>
+		</div>
 	{/if}
 </div>