SarahXia0405 commited on
Commit
ff564fd
·
verified ·
1 Parent(s): 9306b1f

Update web/src/components/sidebar/LeftSidebar.tsx

Browse files
web/src/components/sidebar/LeftSidebar.tsx CHANGED
@@ -6,7 +6,14 @@ import { Badge } from "../ui/badge";
6
 
7
  import { SavedChatSection } from "./SavedChatSection";
8
 
9
- import { Pencil, Check, X, MailPlus, Users } from "lucide-react";
 
 
 
 
 
 
 
10
  import { toast } from "sonner";
11
 
12
  import {
@@ -335,27 +342,38 @@ export function LeftSidebar(props: Props) {
335
  {/* ================= TOP (non-scroll) ================= */}
336
  <div className="flex-shrink-0">
337
  {/* Welcome */}
338
- <div className="px-4 pt-6 pb-6">
339
  <div className="text-[34px] leading-tight font-semibold">Welcome, {displayName}!</div>
340
  </div>
341
 
342
- {/* Welcome ↔ Course divider + spacing */}
343
- <div className="mt-4 mb-6">
344
  <Divider />
345
  </div>
346
 
347
  {/* Course + Group */}
348
- <div className="px-4 pt-8 pb-10 space-y-4">
349
- <div className="text-[30px] leading-tight font-semibold">{courseName}</div>
 
 
 
 
 
 
350
 
351
- {/* ===== My Space ===== */}
352
  {!isTeamSpace ? (
353
  <div className="space-y-2">
354
- <div className="text-[18px] font-semibold truncate">{demoGroup.name}</div>
355
- <div className="text-[18px] font-semibold">Group {demoGroup.no}</div>
 
 
 
 
 
 
356
  </div>
357
  ) : (
358
- /* ===== Team/Group ===== */
359
  <div className="rounded-2xl border bg-background overflow-hidden">
360
  <div className="px-4 pt-4 pb-3 space-y-3">
361
  {/* Line 1: group name editable */}
@@ -501,8 +519,7 @@ export function LeftSidebar(props: Props) {
501
  )}
502
  </div>
503
 
504
- {/* Course/Group ↔ Saved Chat divider + spacing */}
505
- <div className="mt-2 mb-8">
506
  <Divider />
507
  </div>
508
  </div>
@@ -522,7 +539,6 @@ export function LeftSidebar(props: Props) {
522
 
523
  {/* ================= BOTTOM (fixed, non-scroll) ================= */}
524
  <div className="flex-shrink-0">
525
- {/* Saved Chat ↔ Instructor divider + spacing */}
526
  <div className="mt-6 mb-4">
527
  <Divider />
528
  </div>
 
6
 
7
  import { SavedChatSection } from "./SavedChatSection";
8
 
9
+ import {
10
+ Pencil,
11
+ Check,
12
+ X,
13
+ MailPlus,
14
+ Users,
15
+ GraduationCap,
16
+ } from "lucide-react";
17
  import { toast } from "sonner";
18
 
19
  import {
 
342
  {/* ================= TOP (non-scroll) ================= */}
343
  <div className="flex-shrink-0">
344
  {/* Welcome */}
345
+ <div className="px-4 pt-6 pb-5">
346
  <div className="text-[34px] leading-tight font-semibold">Welcome, {displayName}!</div>
347
  </div>
348
 
349
+ <div className="mt-2 mb-4">
 
350
  <Divider />
351
  </div>
352
 
353
  {/* Course + Group */}
354
+ <div className="px-4 pt-5 pb-6 space-y-4">
355
+ {/* Course row with icon (single-color) */}
356
+ <div className="flex items-center gap-3">
357
+ <div className="w-9 h-9 rounded-lg border bg-background flex items-center justify-center flex-shrink-0">
358
+ <GraduationCap className="w-5 h-5 text-foreground" />
359
+ </div>
360
+ <div className="text-[22px] leading-snug font-semibold truncate">{courseName}</div>
361
+ </div>
362
 
363
+ {/* ===== My Space (beautified) ===== */}
364
  {!isTeamSpace ? (
365
  <div className="space-y-2">
366
+ <div className="flex items-center justify-between text-[15px]">
367
+ <span className="text-muted-foreground">Group Name:</span>
368
+ <span className="font-semibold truncate max-w-[60%] text-right">{demoGroup.name}</span>
369
+ </div>
370
+ <div className="flex items-center justify-between text-[15px]">
371
+ <span className="text-muted-foreground">Group Number:</span>
372
+ <span className="font-semibold">{demoGroup.no}</span>
373
+ </div>
374
  </div>
375
  ) : (
376
+ /* ===== Team/Group (keep your original editable card) ===== */
377
  <div className="rounded-2xl border bg-background overflow-hidden">
378
  <div className="px-4 pt-4 pb-3 space-y-3">
379
  {/* Line 1: group name editable */}
 
519
  )}
520
  </div>
521
 
522
+ <div className="mt-1 mb-6">
 
523
  <Divider />
524
  </div>
525
  </div>
 
539
 
540
  {/* ================= BOTTOM (fixed, non-scroll) ================= */}
541
  <div className="flex-shrink-0">
 
542
  <div className="mt-6 mb-4">
543
  <Divider />
544
  </div>