Forráskód Böngészése

fix: drag and drop styling issue

Timothy J. Baek 1 éve
szülő
commit
0921317b2b
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      src/lib/components/chat/MessageInput.svelte

+ 3 - 1
src/lib/components/chat/MessageInput.svelte

@@ -411,7 +411,9 @@
 
 {#if dragged}
 	<div
-		class="fixed lg:w-[calc(100%-260px)] w-full h-full flex z-50 touch-none pointer-events-none"
+		class="fixed {$showSidebar
+			? 'left-0 lg:left-[260px] lg:w-[calc(100%-260px)]'
+			: 'left-0'}  w-full h-full flex z-50 touch-none pointer-events-none"
 		id="dropzone"
 		role="region"
 		aria-label="Drag and Drop Container"