Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed content Title is not showing up in sidebar component. #1646

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 20 additions & 17 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,14 @@ export function Sidebar({
{content.type === 'video' && <Play className="size-4" />}
{content.type === 'notion' && <File className="size-4" />}
</div>
{content.type === 'video' && (
<BookmarkButton
bookmark={content.bookmark ?? null}
contentId={content.id}
/>
)}
<div className="break-words text-base">{content.title}</div>
</div>
{content.type === 'video' && (
<BookmarkButton
bookmark={content.bookmark ?? null}
contentId={content.id}
/>
)}
</div>
</Link>
);
Expand Down Expand Up @@ -256,17 +257,19 @@ export function Sidebar({
<h4 className="text-xl font-bold tracking-tighter text-primary lg:text-2xl">
Course Content
</h4>
<FilterContent
className="bg-gray-400 text-black"
ref={filterRef}
/>
<Button
variant="ghost"
size="icon"
onClick={() => setSidebarOpen(false)}
>
<X className="size-5" />
</Button>
<div className='flex items-center gap-4'>
<FilterContent
className="bg-gray-400 text-black"
ref={filterRef}
/>
<Button
variant="ghost"
size="icon"
onClick={() => setSidebarOpen(false)}
>
<X className="size-5" />
</Button>
</div>
</div>
<Accordion
type="multiple"
Expand Down