Skip to content

Commit

Permalink
refac: added scrollbar in today blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
deewakar-k committed Nov 5, 2024
1 parent 92cdd54 commit c8472b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions apps/frontend/src/components/Today/TodayPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const TodayPage: React.FC = () => {
}

return (
<main className="h-full overflow-y-hidden bg-background p-10">
<main className="h-full bg-background p-10">
<section className="flex justify-between">
<div className="">
<header className="flex items-center justify-start">
Expand All @@ -27,22 +27,22 @@ const TodayPage: React.FC = () => {
onDateChange={setSelectedDate}
/>
</header>
<section className="my-3">
<section className="no-scrollbar my-3 h-[30vh] max-w-[700px] overflow-y-scroll">
<TodayTextArea selectedDate={selectedDate} />
</section>
<section className="space-y-8 text-[16px] text-secondary-foreground">
<section className="no-scrollbar h-[30vh] max-w-[700px] space-y-8 overflow-y-scroll text-[16px] text-secondary-foreground">
<TodayItems selectedDate={selectedDate} />
</section>
</div>
<section className="w-[96%] max-w-[300px]">
<section className="w-[96%] max-w-[400px]">
<div className="flex items-center justify-end gap-4">
<span className="mt-2 text-[11px] font-medium text-foreground">
show agenda
</span>
<ShowAgenda toggle={showAgenda} onToggle={handleToggleAgenda} />
</div>
{showAgenda && (
<div className="my-4 text-secondary-foreground">
<div className="h-[90vh] overflow-y-scroll text-secondary-foreground">
<TodayMeetings selectedDate={selectedDate} />
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/components/TodayMeetings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const TodayMeetings: React.FC<TodayAgendaProps> = ({ selectedDate }) => {
{agendaItems.length === 0 ? (
<li className="list-none">No agenda items</li>
) : (
<ol className="relative min-h-[150px] border-s border-border">
<ol className="relative ml-10 min-h-[150px] border-s border-border">
{agendaItems.map((item, index) => (
<li key={index} className="mb-8 ms-4">
{index === 0 && (
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/components/TodayTextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const TodayTextArea = ({ selectedDate }: JournalProps): JSX.Element => {
}, [content, hasUnsavedChanges, isLoading])

return (
<div className="text-foreground">
<div className="overflow-scroll text-foreground">
<TextEditor editor={editor} minH="30vh" />
</div>
)
Expand Down

0 comments on commit c8472b3

Please sign in to comment.