Spaces:
Running
Running
Commit ·
4d4bfa4
1
Parent(s): 782362c
updates
Browse files
frontend/src/App.jsx
CHANGED
|
@@ -156,14 +156,11 @@ function AppContent() {
|
|
| 156 |
<div className="flex items-center gap-4 mt-4 md:mt-0 relative">
|
| 157 |
{isLoggedIn ? (
|
| 158 |
<div className="flex items-center gap-3 relative">
|
| 159 |
-
|
|
|
|
| 160 |
<div className="flex items-center gap-1.5 justify-end">
|
| 161 |
{userProfile.isAdmin && (
|
| 162 |
-
<Shield
|
| 163 |
-
size={14}
|
| 164 |
-
className="text-yellow-500"
|
| 165 |
-
title="Admin Mode"
|
| 166 |
-
/>
|
| 167 |
)}
|
| 168 |
<span className="text-sm font-bold text-slate-200">
|
| 169 |
{userProfile.username}
|
|
@@ -171,15 +168,26 @@ function AppContent() {
|
|
| 171 |
</div>
|
| 172 |
</div>
|
| 173 |
|
| 174 |
-
<
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
|
| 181 |
{showSettings && (
|
| 182 |
-
<div className="absolute top-full right-0 mt-2 w-64 sm:w-72 bg-slate-900 border border-slate-700 rounded-xl shadow-2xl p-3 sm:p-4 z-dropdown animate-in fade-in slide-in-from-top-2 flex flex-col gap-3 sm:gap-4">
|
| 183 |
|
| 184 |
{/* Default ID Setting */}
|
| 185 |
<div>
|
|
|
|
| 156 |
<div className="flex items-center gap-4 mt-4 md:mt-0 relative">
|
| 157 |
{isLoggedIn ? (
|
| 158 |
<div className="flex items-center gap-3 relative">
|
| 159 |
+
{/* Desktop: username left of button. Mobile: hidden here, shown below button */}
|
| 160 |
+
<div className="hidden md:flex flex-col text-right">
|
| 161 |
<div className="flex items-center gap-1.5 justify-end">
|
| 162 |
{userProfile.isAdmin && (
|
| 163 |
+
<Shield size={14} className="text-yellow-500" title="Admin Mode" />
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
)}
|
| 165 |
<span className="text-sm font-bold text-slate-200">
|
| 166 |
{userProfile.username}
|
|
|
|
| 168 |
</div>
|
| 169 |
</div>
|
| 170 |
|
| 171 |
+
<div className="flex flex-col items-center gap-1">
|
| 172 |
+
<button
|
| 173 |
+
onClick={() => setShowSettings(!showSettings)}
|
| 174 |
+
className="p-2 bg-slate-900 border border-slate-700 rounded-full hover:bg-slate-800 hover:border-luigi-500 hover:text-luigi-400 transition-colors shadow-sm"
|
| 175 |
+
>
|
| 176 |
+
<Settings size={18} />
|
| 177 |
+
</button>
|
| 178 |
+
{/* Mobile only: username under the button */}
|
| 179 |
+
<div className="flex md:hidden items-center gap-1">
|
| 180 |
+
{userProfile.isAdmin && (
|
| 181 |
+
<Shield size={10} className="text-yellow-500" />
|
| 182 |
+
)}
|
| 183 |
+
<span className="text-[10px] font-bold text-slate-400 whitespace-nowrap">
|
| 184 |
+
{userProfile.username}
|
| 185 |
+
</span>
|
| 186 |
+
</div>
|
| 187 |
+
</div>
|
| 188 |
|
| 189 |
{showSettings && (
|
| 190 |
+
<div className="absolute top-full left-0 md:left-auto md:right-0 mt-2 w-64 sm:w-72 bg-slate-900 border border-slate-700 rounded-xl shadow-2xl p-3 sm:p-4 z-dropdown animate-in fade-in slide-in-from-top-2 flex flex-col gap-3 sm:gap-4">
|
| 191 |
|
| 192 |
{/* Default ID Setting */}
|
| 193 |
<div>
|
frontend/src/components/PlayerCardVisual.jsx
CHANGED
|
@@ -216,7 +216,7 @@ export const PlayerCardVisual = ({
|
|
| 216 |
minHeight: 0,
|
| 217 |
touchAction: "manipulation",
|
| 218 |
}}
|
| 219 |
-
className={`flex items-center justify-center rounded-full text-[
|
| 220 |
${isCap
|
| 221 |
? activeChipType === "tc"
|
| 222 |
? "bg-purple-500 text-white border border-purple-300"
|
|
@@ -238,7 +238,7 @@ export const PlayerCardVisual = ({
|
|
| 238 |
minHeight: 0,
|
| 239 |
touchAction: "manipulation",
|
| 240 |
}}
|
| 241 |
-
className={`flex items-center justify-center rounded-full text-[
|
| 242 |
${isVice ? "bg-slate-300 text-slate-900 border border-white" : "bg-slate-900/90 text-slate-400 border border-slate-700 hover:text-white"}`}
|
| 243 |
>
|
| 244 |
V
|
|
|
|
| 216 |
minHeight: 0,
|
| 217 |
touchAction: "manipulation",
|
| 218 |
}}
|
| 219 |
+
className={`flex items-center justify-center rounded-full text-[7px] font-bold leading-none transition-colors shadow-md transform-gpu cursor-pointer select-none
|
| 220 |
${isCap
|
| 221 |
? activeChipType === "tc"
|
| 222 |
? "bg-purple-500 text-white border border-purple-300"
|
|
|
|
| 238 |
minHeight: 0,
|
| 239 |
touchAction: "manipulation",
|
| 240 |
}}
|
| 241 |
+
className={`flex items-center justify-center rounded-full text-[7px] font-bold leading-none transition-colors shadow-md cursor-pointer select-none
|
| 242 |
${isVice ? "bg-slate-300 text-slate-900 border border-white" : "bg-slate-900/90 text-slate-400 border border-slate-700 hover:text-white"}`}
|
| 243 |
>
|
| 244 |
V
|