Skip to content

Commit c813c93

Browse files
committed
Modify sidebar
1 parent a7ed763 commit c813c93

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/components/Sidebar.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -204,22 +204,22 @@ export function Sidebar({
204204
}
205205
>
206206
<div className="flex w-full items-center justify-between gap-2">
207-
<div className="flex items-center gap-2">
208-
<div className="flex gap-2">
209-
{content.type === 'video' && <Check content={content} />}
210-
{content.type === 'video' && <Play className="size-4" />}
211-
{content.type === 'notion' && <File className="size-4" />}
212-
</div>
213-
<div>
214-
{content.title}
215-
</div>
216-
{content.type === 'video' && (
207+
<div className="flex gap-2">
208+
{content.type === 'video' && <Check content={content} />}
209+
{content.type === 'video' && <Play className="size-4" />}
210+
{content.type === 'notion' && <File className="size-4" />}
211+
</div>
212+
<div className="grow">
213+
{content.title}
214+
</div>
215+
{content.type === 'video' && (
216+
<div className="flex-none">
217217
<BookmarkButton
218218
bookmark={content.bookmark ?? null}
219219
contentId={content.id}
220220
/>
221-
)}
222-
</div>
221+
</div>
222+
)}
223223
</div>
224224
</Link>
225225
);

0 commit comments

Comments
 (0)