From 3d3dd94baedb451aee858c3a8430c8da9a71f89b Mon Sep 17 00:00:00 2001 From: sirpiglr <49359077-sirpiglr@users.noreply.replit.com> Date: Sat, 13 Dec 2025 04:33:13 +0000 Subject: [PATCH] Expand Discord activity window to fill available screen space Update Activity.tsx to remove fixed width constraints and utilize full viewport height and width with flexbox for better layout scaling. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: f556467a-df81-4d83-8cb8-9bd34fef30b6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/139vJay Replit-Helium-Checkpoint-Created: true --- client/pages/Activity.tsx | 156 +++++++++++++++++++------------------- 1 file changed, 77 insertions(+), 79 deletions(-) diff --git a/client/pages/Activity.tsx b/client/pages/Activity.tsx index 0e3680d4..b715fc9e 100644 --- a/client/pages/Activity.tsx +++ b/client/pages/Activity.tsx @@ -764,98 +764,96 @@ export default function Activity() { const RealmIcon = realmConfig.icon; return ( -
+
{showConfetti && } {xpGain && setXpGain(null)} />} -
- {/* Dynamic Gradient Header */} - -
-
-
- {user?.avatar_url ? ( - - ) : ( -
- {user?.username?.[0]?.toUpperCase() || "?"} -
- )} - -
-

{user?.full_name || user?.username || "Builder"}

-
-
- - {realmConfig.label} -
- {userStats.current_streak > 0 && ( -
- - {userStats.current_streak}d -
- )} -
+ {/* Dynamic Gradient Header */} + +
+
+
+ {user?.avatar_url ? ( + + ) : ( +
+ {user?.username?.[0]?.toUpperCase() || "?"}
- -
- - + )} + +
+

{user?.full_name || user?.username || "Builder"}

+
+
+ + {realmConfig.label} +
+ {userStats.current_streak > 0 && ( +
+ + {userStats.current_streak}d +
+ )}
-
- {userStats.total_xp.toLocaleString()} XP - {1000 - (userStats.total_xp % 1000)} XP to Level {userStats.level + 1} +
+ +
- - - {/* Tab Navigation */} -
- {tabs.map((tab) => { - const Icon = tab.icon; - const isActive = activeTab === tab.id; - return ( - - ); - })} + +
+ {userStats.total_xp.toLocaleString()} XP + {1000 - (userStats.total_xp % 1000)} XP to Level {userStats.level + 1} +
+ - {/* Tab Content */} -
- - {activeTab === "feed" && } - {activeTab === "realms" && } - {activeTab === "quests" && } - {activeTab === "top" && } - {activeTab === "jobs" && } - {activeTab === "badges" && } - -
+ {/* Tab Navigation */} +
+ {tabs.map((tab) => { + const Icon = tab.icon; + const isActive = activeTab === tab.id; + return ( + + ); + })} +
+ + {/* Tab Content - fills remaining space */} +
+ + {activeTab === "feed" && } + {activeTab === "realms" && } + {activeTab === "quests" && } + {activeTab === "top" && } + {activeTab === "jobs" && } + {activeTab === "badges" && } +
);