Skip to content

Commit 3a8e4d4

Browse files
committed
Move search into the table header.
1 parent f5d98ed commit 3a8e4d4

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

browser-extension/tests/playground/claude.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -307,16 +307,6 @@ export const ClaudePrototype = () => {
307307
{/* Header controls */}
308308
<div className='p-3 border-b'>
309309
<div className='flex flex-wrap gap-3 items-center'>
310-
<div className='relative flex-1 max-w-xs'>
311-
<Search className='absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400' />
312-
<input
313-
type='text'
314-
placeholder='Search drafts...'
315-
value={searchQuery}
316-
onChange={(e) => setSearchQuery(e.target.value)}
317-
className='w-full pl-9 pr-3 py-1.5 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500'
318-
/>
319-
</div>
320310
<label className='flex items-center gap-2 cursor-pointer'>
321311
<input
322312
type='checkbox'
@@ -381,7 +371,16 @@ export const ClaudePrototype = () => {
381371
scope='col'
382372
className='px-3 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider'
383373
>
384-
Draft
374+
<div className='relative'>
375+
<Search className='absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400' />
376+
<input
377+
type='text'
378+
placeholder='Search drafts...'
379+
value={searchQuery}
380+
onChange={(e) => setSearchQuery(e.target.value)}
381+
className='w-full pl-9 pr-3 py-1.5 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500'
382+
/>
383+
</div>
385384
</th>
386385
<th
387386
scope='col'

0 commit comments

Comments
 (0)