@@ -45,7 +45,7 @@ export function AIChatInput(props: {
4545 } , [ disabled , loading ] ) ;
4646
4747 useHotkeys (
48- 'mod+j ' ,
48+ 'mod+i ' ,
4949 ( e ) => {
5050 e . preventDefault ( ) ;
5151 inputRef . current ?. focus ( ) ;
@@ -54,7 +54,7 @@ export function AIChatInput(props: {
5454 ) ;
5555
5656 return (
57- < div className = "relative flex flex-col overflow-hidden circular-corners:rounded-2xl rounded-corners:rounded-md bg-tint-base/9 ring-1 ring-tint-subtle backdrop-blur-lg transition-all depth-subtle:has-[textarea:focus]:shadow-lg has-[textarea:focus]:ring-2 has-[textarea:focus]:ring-primary-hover contrast-more:bg-tint-base" >
57+ < div className = "depth-subtle:has-[textarea:focus]:-translate-y-px relative flex flex-col overflow-hidden circular-corners:rounded-2xl rounded-corners:rounded-md bg-tint-base/9 depth-subtle:shadow-sm shadow-tint/6 ring-1 ring-tint-subtle backdrop-blur-lg transition-all depth-subtle:has-[textarea:focus]:shadow-lg has-[textarea:focus]:shadow-primary-subtle has-[textarea:focus]: ring-2 has-[textarea:focus]:ring-primary-hover contrast-more:bg-tint-base dark:shadow-tint-1 " >
5858 < textarea
5959 ref = { inputRef }
6060 disabled = { disabled || loading }
@@ -99,10 +99,12 @@ export function AIChatInput(props: {
9999 }
100100 } }
101101 />
102- < div className = "absolute top-2.5 right-3 animate-[fadeIn_0.2s_0.5s_ease-in-out_both] peer-focus:hidden" >
103- < KeyboardShortcut keys = { [ 'mod' , 'j' ] } />
104- </ div >
105- < div className = "absolute inset-x-0 bottom-0 flex items-center px-2 py-2" >
102+ { ! disabled ? (
103+ < div className = "absolute top-2.5 right-3 animate-[fadeIn_0.2s_0.5s_ease-in-out_both] peer-focus:hidden" >
104+ < KeyboardShortcut keys = { [ 'mod' , 'i' ] } className = "bg-tint-base" />
105+ </ div >
106+ ) : null }
107+ < div className = "absolute inset-x-0 bottom-0 flex items-center gap-2 px-2 py-2" >
106108 < Tooltip
107109 label = {
108110 < div className = "flex flex-col gap-3 p-2" >
@@ -126,11 +128,11 @@ export function AIChatInput(props: {
126128 }
127129 arrow
128130 >
129- < div className = "flex cursor-help items-center gap-1 circular-corners:rounded-2xl rounded-corners:rounded-md px-2 py-1 text-tint/7 text-xs transition-all hover:bg-tint" >
131+ < div className = "flex cursor-help items-center gap-1 circular-corners:rounded-2xl rounded-corners:rounded-md px-2.5 py-1.5 text-tint/7 text-xs transition-all hover:bg-tint" >
130132 < span className = "-ml-1 circular-corners:rounded-2xl rounded-corners:rounded-sm bg-tint-11/7 px-1 py-0.5 font-mono font-semibold text-[0.65rem] text-contrast-tint-11 leading-none" >
131133 { t ( language , 'ai_chat_context_badge' ) }
132134 </ span > { ' ' }
133- < span > { t ( language , 'ai_chat_context_title' ) } </ span >
135+ < span className = "leading-none" > { t ( language , 'ai_chat_context_title' ) } </ span >
134136 </ div >
135137 </ Tooltip >
136138 < Button
0 commit comments