Sfoglia il codice sorgente

Merge pull request #1942 from open-webui/dev

fix: drag and drop styling issue
Timothy Jaeryang Baek 1 anno fa
parent
commit
30b053116d
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/lib/components/chat/MessageInput.svelte

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

@@ -411,7 +411,9 @@
 
 
 {#if dragged}
 {#if dragged}
 	<div
 	<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"
 		id="dropzone"
 		role="region"
 		role="region"
 		aria-label="Drag and Drop Container"
 		aria-label="Drag and Drop Container"