Skip to content

Commit b830d50

Browse files
committed
More compact.
1 parent 703e615 commit b830d50

File tree

1 file changed

+24
-31
lines changed

1 file changed

+24
-31
lines changed

browser-extension/tests/playground/claude.tsx

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ export const ClaudePrototype = () => {
303303
<col className='w-10' />
304304
<col />
305305
<col className='w-24' />
306-
<col className='w-24' />
307306
</colgroup>
308307
<thead className='border-b'>
309308
<tr>
@@ -402,12 +401,6 @@ export const ClaudePrototype = () => {
402401
)}
403402
</button>
404403
</th>
405-
<th
406-
scope='col'
407-
className='px-3 py-3 text-right text-xs font-medium text-gray-500 tracking-wider'
408-
>
409-
ACTIONS
410-
</th>
411404
</tr>
412405
</thead>
413406
<tbody className='divide-y divide-gray-200'>
@@ -481,30 +474,30 @@ export const ClaudePrototype = () => {
481474
</div>
482475
</td>
483476
<td className='px-3 py-3 text-sm text-gray-500'>
484-
<span title={new Date(draft.lastEdit).toLocaleString()}>
485-
{timeAgo(new Date(draft.lastEdit))}
486-
</span>
487-
</td>
488-
<td className='px-3 py-3'>
489-
<div className='flex items-center justify-end gap-1'>
490-
<button
491-
type='button'
492-
onClick={() => handleOpen(draft.url)}
493-
className='p-1.5 hover:bg-gray-100 rounded'
494-
aria-label='Open in context'
495-
title='Open in context'
496-
>
497-
<ExternalLink className='w-4 h-4 text-gray-600' />
498-
</button>
499-
<button
500-
type='button'
501-
onClick={() => handleTrash(draft)}
502-
className='p-1.5 hover:bg-gray-100 rounded'
503-
aria-label='Discard'
504-
title='Discard'
505-
>
506-
<Trash2 className='w-4 h-4 text-gray-600' />
507-
</button>
477+
<div className='flex flex-col items-center gap-1'>
478+
<span title={new Date(draft.lastEdit).toLocaleString()} className='whitespace-nowrap'>
479+
{timeAgo(new Date(draft.lastEdit))}
480+
</span>
481+
<div className='flex items-center gap-1'>
482+
<button
483+
type='button'
484+
onClick={() => handleOpen(draft.url)}
485+
className='p-1.5 hover:bg-gray-100 rounded'
486+
aria-label='Open in context'
487+
title='Open in context'
488+
>
489+
<ExternalLink className='w-4 h-4 text-gray-600' />
490+
</button>
491+
<button
492+
type='button'
493+
onClick={() => handleTrash(draft)}
494+
className='p-1.5 hover:bg-gray-100 rounded'
495+
aria-label='Discard'
496+
title='Discard'
497+
>
498+
<Trash2 className='w-4 h-4 text-gray-600' />
499+
</button>
500+
</div>
508501
</div>
509502
</td>
510503
</tr>

0 commit comments

Comments
 (0)