@@ -55,12 +55,12 @@ export default function MemoryPage() {
5555 const [ activeScope , setActiveScope ] = useState < Scope > ( 'builtin' ) ;
5656
5757 return (
58- < div className = "flex flex-col min-w-0 h-dvh bg-background" >
59- < header className = "flex sticky top-0 bg-background py-3 items-center px-4 border-b " >
60- < h1 className = "text-lg font-semibold" > Memory</ h1 >
58+ < div className = "flex h-dvh min-w-0 flex-col bg-background" >
59+ < header className = "sticky top-0 flex items-center border-b bg-background px-4 py-3 " >
60+ < h1 className = "font-semibold text-lg " > Memory</ h1 >
6161 </ header >
6262
63- < div className = "flex-1 overflow -y-auto p-4 space-y -4" >
63+ < div className = "flex-1 space -y-4 overflow-y-auto p -4" >
6464 { /* Scope tabs */ }
6565 < div className = "flex flex-wrap items-center gap-2" >
6666 { ( [ 'builtin' , 'long_term' , 'session' ] as Scope [ ] ) . map ( ( scope ) => (
@@ -149,7 +149,7 @@ function BuiltinPanel() {
149149 < div className = "space-y-4" >
150150 < Card >
151151 < CardHeader className = "space-y-3" >
152- < p className = "text-sm text- muted-foreground" >
152+ < p className = "text-muted-foreground text-sm " >
153153 These built-in memories are used to build system prompts, making
154154 your Agent customizable to you.
155155 </ p >
@@ -158,7 +158,7 @@ function BuiltinPanel() {
158158 { BUILTIN_KEYS . map ( ( key ) => (
159159 < Card key = { key } >
160160 < CardHeader className = "pb-2" >
161- < CardTitle className = "text-sm font-mono" > { key } </ CardTitle >
161+ < CardTitle className = "font-mono text-sm " > { key } </ CardTitle >
162162 </ CardHeader >
163163 < CardContent className = "space-y-2" >
164164 < Textarea
@@ -170,7 +170,7 @@ function BuiltinPanel() {
170170 placeholder = { `${ key } content...` }
171171 />
172172 < div className = "flex items-center justify-between" >
173- < span className = "text-xs text- muted-foreground" >
173+ < span className = "text-muted-foreground text-xs " >
174174 { memories [ key ] ?. updatedAt
175175 ? `Updated: ${ new Date ( memories [ key ] . updatedAt ) . toLocaleString ( ) } `
176176 : 'Not set' }
@@ -181,9 +181,9 @@ function BuiltinPanel() {
181181 onClick = { ( ) => saveKey ( key ) }
182182 >
183183 { savingKey === key ? (
184- < Loader2 className = "size-4 animate-spin mr-1 " />
184+ < Loader2 className = "mr-1 size-4 animate-spin" />
185185 ) : (
186- < Save className = "size-4 mr-1" />
186+ < Save className = "mr-1 size-4 " />
187187 ) }
188188 Save
189189 </ Button >
@@ -264,11 +264,11 @@ function LongTermPanel() {
264264 < Card >
265265 < CardHeader >
266266 < CardTitle className = "text-base" > Add Long-term Memory</ CardTitle >
267- < p className = "text-sm text- muted-foreground" >
267+ < p className = "text-muted-foreground text-sm " >
268268 Claw can remember your preferences and knowledge across this
269269 single-user project.
270270 </ p >
271- < p className = "text-sm text- muted-foreground" >
271+ < p className = "text-muted-foreground text-sm " >
272272 Setting the < span className = "font-medium" > embedding model</ span > in
273273 the AI configuration can make retrieval more accurate, but memory
274274 still saves even if embeddings are unavailable.
@@ -284,9 +284,9 @@ function LongTermPanel() {
284284 < div className = "flex justify-end" >
285285 < Button onClick = { create } disabled = { creating } >
286286 { creating ? (
287- < Loader2 className = "size-4 animate-spin mr-1 " />
287+ < Loader2 className = "mr-1 size-4 animate-spin" />
288288 ) : (
289- < Plus className = "size-4 mr-1" />
289+ < Plus className = "mr-1 size-4 " />
290290 ) }
291291 Add
292292 </ Button >
@@ -299,17 +299,17 @@ function LongTermPanel() {
299299 < Loader2 className = "size-6 animate-spin text-muted-foreground" />
300300 </ div >
301301 ) : memories . length === 0 ? (
302- < div className = "text-sm text-muted-foreground p-6 border border-dashed rounded-lg text-center " >
302+ < div className = "rounded-lg border border-dashed p-6 text-center text-muted-foreground text-sm " >
303303 No long-term memories yet
304304 </ div >
305305 ) : (
306306 < div className = "space-y-3" >
307307 { memories . map ( ( item ) => (
308308 < Card key = { item . id } >
309- < CardContent className = "pt-4 space-y-2" >
310- < p className = "text-sm whitespace-pre-wrap" > { item . content } </ p >
309+ < CardContent className = "space-y-2 pt-4 " >
310+ < p className = "whitespace-pre-wrap text-sm " > { item . content } </ p >
311311 < div className = "flex items-center justify-between" >
312- < span className = "text-xs text- muted-foreground" >
312+ < span className = "text-muted-foreground text-xs " >
313313 { new Date ( item . createdAt ) . toLocaleString ( ) }
314314 </ span >
315315 < Button
@@ -365,7 +365,7 @@ function SessionPanel() {
365365 < Card >
366366 < CardHeader >
367367 < CardTitle className = "text-base" > Session Summaries</ CardTitle >
368- < p className = "text-sm text- muted-foreground" >
368+ < p className = "text-muted-foreground text-sm " >
369369 Session memory is isolated within each session, which is especially
370370 useful for long sessions.
371371 </ p >
@@ -386,7 +386,7 @@ function SessionPanel() {
386386 </ Card >
387387
388388 { summaries . length === 0 ? (
389- < div className = "text-sm text-muted-foreground p-6 border border-dashed rounded-lg text-center " >
389+ < div className = "rounded-lg border border-dashed p-6 text-center text-muted-foreground text-sm " >
390390 { sessionId . trim ( )
391391 ? 'No summaries for this session'
392392 : 'Enter a session ID to view summaries' }
@@ -395,19 +395,19 @@ function SessionPanel() {
395395 < div className = "space-y-3" >
396396 { summaries . map ( ( s ) => (
397397 < Card key = { s . id } >
398- < CardContent className = "pt-4 space-y-2" >
398+ < CardContent className = "space-y-2 pt-4 " >
399399 < div className = "flex items-center gap-2" >
400- < code className = "px-2 py-0.5 rounded bg-muted text-xs" >
400+ < code className = "rounded bg-muted px-2 py-0.5 text-xs" >
401401 v{ s . summaryVersion }
402402 </ code >
403403 { s . isCurrent && (
404- < span className = "text-xs font-medium text-green-600" >
404+ < span className = "font-medium text-green-600 text-xs " >
405405 current
406406 </ span >
407407 ) }
408408 </ div >
409- < p className = "text-sm whitespace-pre-wrap" > { s . content } </ p >
410- < span className = "text-xs text-muted-foreground block " >
409+ < p className = "whitespace-pre-wrap text-sm " > { s . content } </ p >
410+ < span className = "block text-muted-foreground text-xs " >
411411 { new Date ( s . createdAt ) . toLocaleString ( ) }
412412 </ span >
413413 </ CardContent >
0 commit comments