fix(v2): version display — top-left inside sidebar above header
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6b0b26c287
commit
869507a3ef
8 changed files with 60 additions and 62 deletions
|
|
@ -53,6 +53,7 @@ export const MapLayout: React.FC<Props> = ({ data, onViewToggle }) => {
|
|||
showPortals={showPortals}
|
||||
onToggleHeatmap={setShowHeatmap}
|
||||
onTogglePortals={setShowPortals}
|
||||
version={version}
|
||||
/>
|
||||
<MapView
|
||||
players={players}
|
||||
|
|
@ -65,7 +66,6 @@ export const MapLayout: React.FC<Props> = ({ data, onViewToggle }) => {
|
|||
<WindowRenderer characters={data.characters} chatMessages={data.chatMessages}
|
||||
nearbyObjects={data.nearbyObjects} socket={data.socketRef.current} />
|
||||
<RareNotification recentRares={data.recentRares} />
|
||||
{version && <div className="ml-version">v{version}</div>}
|
||||
</div>
|
||||
</WindowManagerProvider>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -17,11 +17,12 @@ interface Props {
|
|||
showPortals: boolean;
|
||||
onToggleHeatmap: (v: boolean) => void;
|
||||
onTogglePortals: (v: boolean) => void;
|
||||
version?: string;
|
||||
}
|
||||
|
||||
export const Sidebar: React.FC<Props> = ({
|
||||
players, vitals, serverHealth, totalRares, totalKills, getColor, onSelectPlayer, onViewToggle,
|
||||
showHeatmap, showPortals, onToggleHeatmap, onTogglePortals,
|
||||
showHeatmap, showPortals, onToggleHeatmap, onTogglePortals, version,
|
||||
}) => {
|
||||
const [sortKey, setSortKey] = useState<SortKey>('name');
|
||||
const [filter, setFilter] = useState('');
|
||||
|
|
@ -55,6 +56,7 @@ export const Sidebar: React.FC<Props> = ({
|
|||
|
||||
return (
|
||||
<div className="ml-sidebar">
|
||||
{version && <div className="ml-version">v{version}</div>}
|
||||
<div className="ml-sidebar-header">
|
||||
<span className="ml-sidebar-title">Active Mosswart Enjoyers ({players.length})</span>
|
||||
<button className="ml-view-toggle" onClick={onViewToggle}>Dashboard</button>
|
||||
|
|
|
|||
|
|
@ -379,13 +379,9 @@
|
|||
|
||||
/* ── Version display ──────────────────────────────────── */
|
||||
.ml-version {
|
||||
position: fixed;
|
||||
top: 6px;
|
||||
left: 410px;
|
||||
font-size: 0.6rem;
|
||||
color: #555;
|
||||
z-index: 50;
|
||||
pointer-events: none;
|
||||
font-size: 0.65rem;
|
||||
color: #aaa;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
/* ── Tooltip ──────────────────────────────────────────── */
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
49
static/v2/assets/index-B0FrDIQB.js
Normal file
49
static/v2/assets/index-B0FrDIQB.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -5,8 +5,8 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Mosswart Overlord v2</title>
|
||||
<link rel="icon" type="image/png" href="/icons/7735.png" />
|
||||
<script type="module" crossorigin src="/v2/assets/index-enmZs0AR.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/v2/assets/index-LcLAhCFL.css">
|
||||
<script type="module" crossorigin src="/v2/assets/index-B0FrDIQB.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/v2/assets/index-CyLyPOVJ.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue