Skip to content

Commit 694fc15

Browse files
committed
fixed upload scroll, member list sheet view
1 parent 33fde28 commit 694fc15

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/classrooms/[classroomId]/upload/uploadComponent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default function UploadComponent({
145145

146146
return (
147147
<div className="flex min-h-screen flex-col items-center justify-center p-6">
148-
<Card className="w-full max-w-md">
148+
<Card className="w-full max-w-[35vw]">
149149
<CardHeader>
150150
<CardTitle>File Upload</CardTitle>
151151
</CardHeader>
@@ -193,11 +193,11 @@ function FileList({ uploadedFiles }: { uploadedFiles: UploadedFile[] }) {
193193
const pathname = usePathname();
194194
return (
195195
uploadedFiles.length > 0 && (
196-
<ScrollArea className="mt-5 max-h-[50vh]">
196+
<ScrollArea className="mt-5 w-full flex h-fit max-h-[50vh] flex-col ">
197197
<div className="mt-6">
198198
<h2 className="text-lg font-semibold">Uploaded Files</h2>
199199
<ul className="my-2 space-y-2">
200-
{uploadedFiles.map((file) => (
200+
{uploadedFiles.flatMap(f => [f,f,f,f,f]).map((file) => (
201201
<li key={file.id} className="rounded-md border p-3">
202202
<Link
203203
href={`${pathname}/preview?documentId=${file.id}&datasetId=${file.datasetId}`}

app/classrooms/_components/memberList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export default function MemberList({
148148
)}
149149

150150
{/* not used: https://github.com/shadcn-ui/ui/issues/16#issuecomment-1602565563 */}
151-
<SheetContent className="flex w-[55vw] items-center justify-center align-middle sm:max-w-5xl">
151+
<SheetContent className="flex w-[55vw] items-center justify-center align-middle sm:max-w-[55vw]">
152152
<SheetHeader>
153153
<SheetTitle>{classroom.name} Members</SheetTitle>
154154
{/* <SheetDescription>

app/classrooms/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ function ClassroomList({ userContext }: { userContext: UserContextType }) {
455455
/>
456456
</div>
457457
</div>
458-
<Separator className="my-4 mb-10" />
458+
<Separator className="my-4 mb-10 bg-accent" />
459459
<TabsContent value="admin">
460460
<div>
461461
<div className="grid auto-rows-min gap-4 min-[940px]:grid-cols-2 min-[1270px]:grid-cols-3 min-[1665px]:grid-cols-4">

shared/components/ui/scroll-area.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const ScrollBar = React.forwardRef<
4343
)}
4444
{...props}
4545
>
46-
<ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />
46+
<ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-accent" />
4747
</ScrollAreaPrimitive.ScrollAreaScrollbar>
4848
));
4949
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;

0 commit comments

Comments
 (0)