Parcourir la source

Fixed drag-and-drop overlay blocks scrolling

Alex Tran il y a 2 ans
Parent
commit
d327ec6ba4
2 fichiers modifiés avec 13 ajouts et 11 suppressions
  1. 12 10
      web/src/app.html
  2. 1 1
      web/src/routes/+layout.svelte

+ 12 - 10
web/src/app.html

@@ -1,13 +1,15 @@
 <!DOCTYPE html>
 <html lang="en" class="dark">
-	<head>
-		<meta charset="utf-8" />
-		<link rel="icon" href="%sveltekit.assets%/favicon.png" />
-		<meta name="viewport" content="width=device-width, initial-scale=1" />
-		%sveltekit.head%
-	</head>
 
-	<body class="bg-immich-bg dark:bg-immich-dark-bg fixed inset-0 w-full h-full">
-		<div class="fixed inset-0 w-full h-full">%sveltekit.body%</div>
-	</body>
-</html>
+<head>
+  <meta charset="utf-8" />
+  <link rel="icon" href="%sveltekit.assets%/favicon.png" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  %sveltekit.head%
+</head>
+
+<body class="bg-immich-bg dark:bg-immich-dark-bg">
+  <div>%sveltekit.body%</div>
+</body>
+
+</html>

+ 1 - 1
web/src/routes/+layout.svelte

@@ -77,7 +77,7 @@
 	};
 </script>
 
-<main on:dragenter={() => (showUploadCover = true)} class="fixed inset-0 w-full h-full">
+<main on:dragenter={() => (showUploadCover = true)}>
 	{#if canShow}
 		<div in:fade={{ duration: 100 }}>
 			{#if showNavigationLoadingBar}