Skip to content

Commit 8e37cbc

Browse files
Improve style
1 parent e81595b commit 8e37cbc

File tree

1 file changed

+27
-28
lines changed

1 file changed

+27
-28
lines changed

apps/web/src/components/Files.tsx

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -249,35 +249,24 @@ file`
249249
className="w-[324px] flex flex-col border-l border-gray-200 h-full bg-white"
250250
{...getRootProps()}
251251
>
252-
<div className="flex flex-col p-6 border-b space-y-6">
253-
<div className="flex justify-between space-x-3">
254-
<div>
255-
<h3 className="text-lg font-medium leading-6 text-gray-900 pr-1.5">
256-
Files
257-
</h3>
258-
<p className="text-gray-500 text-sm pt-1">
259-
{'Click "add" or drop files into this tab to upload them.'}
260-
</p>
261-
</div>
262-
<div>
263-
<button
264-
className="flex items-center gap-x-2 rounded-sm bg-primary-200 px-3 py-1 text-sm hover:bg-primary-300 disabled:cursor-not-allowed disabled:bg-gray-200"
265-
onClick={openUpload}
266-
>
267-
<CloudArrowUpIcon className="w-4 h-4" />
268-
Add
269-
</button>
270-
</div>
252+
<div className="flex justify-between border-b p-6 space-x-3">
253+
<div>
254+
<h3 className="text-lg font-medium leading-6 text-gray-900 pr-1.5">
255+
Files
256+
</h3>
257+
<p className="text-gray-500 text-sm pt-1">
258+
{'Click "add" or drop files into this tab to upload them.'}
259+
</p>
271260
</div>
272-
<div className="relative">
273-
<input
274-
type="text"
275-
placeholder="Find file by name"
276-
className="block w-full rounded-md border-0 pl-7 py-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-ceramic-200/70 text-xs h-[38px]"
277-
value={search}
278-
onChange={(e) => setSearch(e.target.value)}
279-
/>
280-
<MagnifyingGlassIcon className="absolute top-1 left-2 w-4 h-4 text-gray-400 translate-y-1/2" />
261+
262+
<div>
263+
<button
264+
className="flex items-center gap-x-2 rounded-sm bg-primary-200 px-3 py-1 text-sm hover:bg-primary-300 disabled:cursor-not-allowed disabled:bg-gray-200"
265+
onClick={openUpload}
266+
>
267+
<CloudArrowUpIcon className="w-4 h-4" />
268+
Add
269+
</button>
281270
</div>
282271
</div>
283272
{(upload._tag === 'uploading' || results.length > 0) && (
@@ -332,6 +321,16 @@ file`
332321
<InformationCircleIcon className="w-4 h-4 text-gray-300" />
333322
</Tooltip>
334323
</div>
324+
<div className="px-4 py-0 flex items-center border-b border-gray-200 group focus-within:border-blue-300">
325+
<MagnifyingGlassIcon className="h-3.5 w-3.5 text-gray-400 group-focus-within:text-blue-500" />
326+
<input
327+
type="text"
328+
placeholder="Search..."
329+
className="w-full h-8 border-0 placeholder-gray-400 text-xs text-gray-600 focus:outline-none focus:ring-0 pl-2"
330+
onChange={(e) => setSearch(e.target.value)}
331+
value={search}
332+
/>
333+
</div>
335334
{actualFiles.length > 0 ? (
336335
<ul
337336
role="list"

0 commit comments

Comments
 (0)