Spaces:
Sleeping
Sleeping
Update web/src/components/sidebar/LeftSidebar.tsx
Browse files
web/src/components/sidebar/LeftSidebar.tsx
CHANGED
|
@@ -364,20 +364,18 @@ export function LeftSidebar(props: Props) {
|
|
| 364 |
<div className="text-[30px] leading-tight font-semibold">{courseName}</div>
|
| 365 |
|
| 366 |
{/* ===== My Space: show My Space + Group No + Group Name (read-only, no members) ===== */}
|
|
|
|
| 367 |
{!isTeamSpace ? (
|
| 368 |
<div className="space-y-2">
|
|
|
|
| 369 |
<div className="text-[18px] font-semibold text-foreground truncate">
|
| 370 |
-
{
|
| 371 |
</div>
|
| 372 |
-
|
|
|
|
| 373 |
<div className="text-[18px] font-semibold text-foreground">
|
| 374 |
Group {toIntOrFallback(wsGroupNo, 1)}
|
| 375 |
</div>
|
| 376 |
-
|
| 377 |
-
{/* ✅ Added: Group Name under Group 1 */}
|
| 378 |
-
<div className="text-[16px] text-muted-foreground truncate">
|
| 379 |
-
{wsGroupName || "My Group"}
|
| 380 |
-
</div>
|
| 381 |
</div>
|
| 382 |
) : (
|
| 383 |
/* ===== Team/Group: current style unchanged ===== */
|
|
|
|
| 364 |
<div className="text-[30px] leading-tight font-semibold">{courseName}</div>
|
| 365 |
|
| 366 |
{/* ===== My Space: show My Space + Group No + Group Name (read-only, no members) ===== */}
|
| 367 |
+
{/* ===== My Space: show Group Name + Group No (read-only, no members) ===== */}
|
| 368 |
{!isTeamSpace ? (
|
| 369 |
<div className="space-y-2">
|
| 370 |
+
{/* Black title: pick a name (use wsGroupName; fallback "My Group") */}
|
| 371 |
<div className="text-[18px] font-semibold text-foreground truncate">
|
| 372 |
+
{wsGroupName || "My Group"}
|
| 373 |
</div>
|
| 374 |
+
|
| 375 |
+
{/* Group number */}
|
| 376 |
<div className="text-[18px] font-semibold text-foreground">
|
| 377 |
Group {toIntOrFallback(wsGroupNo, 1)}
|
| 378 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 379 |
</div>
|
| 380 |
) : (
|
| 381 |
/* ===== Team/Group: current style unchanged ===== */
|