@@ -33,7 +33,7 @@ const AIPanelComponent = memo(({ className, onClose }: AIPanelProps) => {
3333 const inputRef = useRef < AIPanelInputRef > ( null ) ;
3434 const isLayoutMode = jotai . useAtomValue ( atoms . controlShiftDelayAtom ) ;
3535 const showOverlayBlockNums = jotai . useAtomValue ( getSettingsKeyAtom ( "app:showoverlayblocknums" ) ) ?? true ;
36- const isInputFocused = jotai . useAtomValue ( atoms . waveAIFocusedAtom ) ;
36+ const isFocused = jotai . useAtomValue ( atoms . waveAIFocusedAtom ) ;
3737 const telemetryEnabled = jotai . useAtomValue ( getSettingsKeyAtom ( "telemetry:enabled" ) ) ?? false ;
3838
3939 const { messages, sendMessage, status, setMessages, error } = useChat ( {
@@ -163,7 +163,7 @@ const AIPanelComponent = memo(({ className, onClose }: AIPanelProps) => {
163163 const handleDragOver = ( e : React . DragEvent ) => {
164164 e . preventDefault ( ) ;
165165 e . stopPropagation ( ) ;
166-
166+
167167 const hasFiles = hasFilesDragged ( e . dataTransfer ) ;
168168 if ( hasFiles && ! isDragOver ) {
169169 setIsDragOver ( true ) ;
@@ -175,7 +175,7 @@ const AIPanelComponent = memo(({ className, onClose }: AIPanelProps) => {
175175 const handleDragEnter = ( e : React . DragEvent ) => {
176176 e . preventDefault ( ) ;
177177 e . stopPropagation ( ) ;
178-
178+
179179 if ( hasFilesDragged ( e . dataTransfer ) ) {
180180 setIsDragOver ( true ) ;
181181 }
@@ -235,15 +235,15 @@ const AIPanelComponent = memo(({ className, onClose }: AIPanelProps) => {
235235 return (
236236 < div
237237 className = { cn (
238- "bg-gray-900 flex flex-col relative h-[calc(100%-3px )] mt-1" ,
238+ "bg-gray-900 flex flex-col relative h-[calc(100%-4px )] mt-1" ,
239239 className ,
240240 isDragOver && "bg-gray-800 border-accent" ,
241- isInputFocused ? "border-t border-accent" : "border-t border-gray-600 "
241+ isFocused ? "border-2 border-accent" : "border-2 border-transparent "
242242 ) }
243243 style = { {
244- borderRight : isInputFocused ? "1px solid var(--accent-color)" : "1px solid rgb(75, 85, 99)" ,
245- borderTopRightRadius : "var(--block-border-radius)" ,
246- borderBottomRightRadius : "var(--block-border-radius)" ,
244+ borderTopRightRadius : 10 ,
245+ borderBottomRightRadius : 10 ,
246+ borderBottomLeftRadius : 10 ,
247247 } }
248248 onDragOver = { handleDragOver }
249249 onDragEnter = { handleDragEnter }
0 commit comments