@@ -91,61 +91,6 @@ export function EditChunkModal({
9191 return TOKEN_BG_COLORS [ index % TOKEN_BG_COLORS . length ]
9292 }
9393
94- // #region agent log - style comparison
95- const tokenizerDivRef = useRef < HTMLDivElement > ( null )
96- useEffect ( ( ) => {
97- const logStyles = ( ) => {
98- const ta = textareaRef . current
99- const tv = tokenizerDivRef . current
100- if ( ta && ! tokenizerOn ) {
101- const s = window . getComputedStyle ( ta )
102- const rect = ta . getBoundingClientRect ( )
103- fetch ( 'http://127.0.0.1:7243/ingest/77a2b2bc-808d-4bfd-a366-739b0b04635d' , {
104- method : 'POST' ,
105- headers : { 'Content-Type' : 'application/json' } ,
106- body : JSON . stringify ( {
107- location : 'edit-chunk-modal.tsx:TEXTAREA' ,
108- message : 'Textarea position' ,
109- data : {
110- top : rect . top ,
111- marginTop : s . marginTop ,
112- paddingTop : s . paddingTop ,
113- borderTopWidth : s . borderTopWidth ,
114- height : rect . height ,
115- } ,
116- timestamp : Date . now ( ) ,
117- sessionId : 'debug-session' ,
118- hypothesisId : 'vertical' ,
119- } ) ,
120- } ) . catch ( ( ) => { } )
121- }
122- if ( tv && tokenizerOn ) {
123- const s = window . getComputedStyle ( tv )
124- const rect = tv . getBoundingClientRect ( )
125- fetch ( 'http://127.0.0.1:7243/ingest/77a2b2bc-808d-4bfd-a366-739b0b04635d' , {
126- method : 'POST' ,
127- headers : { 'Content-Type' : 'application/json' } ,
128- body : JSON . stringify ( {
129- location : 'edit-chunk-modal.tsx:TOKENIZER' ,
130- message : 'Tokenizer position' ,
131- data : {
132- top : rect . top ,
133- marginTop : s . marginTop ,
134- paddingTop : s . paddingTop ,
135- borderTopWidth : s . borderTopWidth ,
136- height : rect . height ,
137- } ,
138- timestamp : Date . now ( ) ,
139- sessionId : 'debug-session' ,
140- hypothesisId : 'vertical' ,
141- } ) ,
142- } ) . catch ( ( ) => { } )
143- }
144- }
145- setTimeout ( logStyles , 100 )
146- } , [ tokenizerOn ] )
147- // #endregion
148-
14994 useEffect ( ( ) => {
15095 if ( chunk ?. content ) {
15196 setEditedContent ( chunk . content )
@@ -324,7 +269,6 @@ export function EditChunkModal({
324269 { tokenizerOn ? (
325270 /* Tokenizer view - matches Textarea styling exactly (transparent border for spacing) */
326271 < div
327- ref = { tokenizerDivRef }
328272 className = 'h-[418px] overflow-y-auto whitespace-pre-wrap break-words rounded-[4px] border border-transparent bg-[var(--surface-5)] px-[8px] py-[8px] font-medium font-sans text-[var(--text-primary)] text-sm'
329273 style = { { minHeight : '418px' } }
330274 >
0 commit comments