@mundogamernetwork/shared-ui 1.19.1 → 1.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -170,15 +170,21 @@ const handleToggleOnline = () => {
|
|
|
170
170
|
and blank next to the avatar, show the username here
|
|
171
171
|
instead of in its own row below.
|
|
172
172
|
-->
|
|
173
|
-
<div v-else class="col p-0
|
|
173
|
+
<div v-else class="col p-0 username-line">
|
|
174
174
|
<span class="username username--inline">{{ user?.nickname || user?.name }}</span>
|
|
175
|
+
<slot name="username-suffix" />
|
|
175
176
|
</div>
|
|
176
177
|
</slot>
|
|
177
178
|
</div>
|
|
178
179
|
|
|
179
180
|
<div v-if="hasStats" class="row info-row">
|
|
180
|
-
<div class="col p-0
|
|
181
|
+
<div class="col p-0 username-line">
|
|
181
182
|
<span class="username">{{ user?.nickname || user?.name }}</span>
|
|
183
|
+
<!--
|
|
184
|
+
Optional, inline right after the nickname (a plan badge, a role chip). Replaces putting
|
|
185
|
+
the plan on its own row under the name via #user-subtitle, which hosts can still use.
|
|
186
|
+
-->
|
|
187
|
+
<slot name="username-suffix" />
|
|
182
188
|
</div>
|
|
183
189
|
</div>
|
|
184
190
|
|
|
@@ -219,10 +225,6 @@ const handleToggleOnline = () => {
|
|
|
219
225
|
</a>
|
|
220
226
|
</div>
|
|
221
227
|
|
|
222
|
-
<div v-if="whatsNewHistory && whatsNewStore.hostMounted" class="row info-row">
|
|
223
|
-
<MgWhatsNewMenuItem @opened="emit('toggleVisible')" />
|
|
224
|
-
</div>
|
|
225
|
-
|
|
226
228
|
<div class="row info-row">
|
|
227
229
|
<a :href="accountsBaseUrl" target="_blank" class="btn btn-primary-outline mt-3">
|
|
228
230
|
{{ $t("account_menu.buttons.manage_account") }}
|
|
@@ -247,6 +249,11 @@ const handleToggleOnline = () => {
|
|
|
247
249
|
|
|
248
250
|
<slot name="extra-menu-items" />
|
|
249
251
|
|
|
252
|
+
<!-- Secondary entry, like a help link: after the account rows, right above Logout. -->
|
|
253
|
+
<div v-if="whatsNewHistory && whatsNewStore.hostMounted" class="row info-row whats-new-row">
|
|
254
|
+
<MgWhatsNewMenuItem @opened="emit('toggleVisible')" />
|
|
255
|
+
</div>
|
|
256
|
+
|
|
250
257
|
<div class="row info-row my-3">
|
|
251
258
|
<button class="logout" type="button" @click="handleLogout">
|
|
252
259
|
{{ $t("account_menu.buttons.logout") }}
|
|
@@ -377,6 +384,19 @@ const handleToggleOnline = () => {
|
|
|
377
384
|
}
|
|
378
385
|
}
|
|
379
386
|
|
|
387
|
+
// Nickname and an optional suffix (plan badge) on one line; wraps instead of overflowing the 240px menu.
|
|
388
|
+
.username-line {
|
|
389
|
+
display: flex;
|
|
390
|
+
align-items: center;
|
|
391
|
+
flex-wrap: wrap;
|
|
392
|
+
gap: 4px 8px;
|
|
393
|
+
min-width: 0;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.whats-new-row {
|
|
397
|
+
padding-top: 4px;
|
|
398
|
+
}
|
|
399
|
+
|
|
380
400
|
.username {
|
|
381
401
|
margin-top: 4px;
|
|
382
402
|
line-height: 1.25rem;
|
|
@@ -523,7 +543,8 @@ const handleToggleOnline = () => {
|
|
|
523
543
|
position: absolute;
|
|
524
544
|
inset: 0;
|
|
525
545
|
cursor: pointer;
|
|
526
|
-
|
|
546
|
+
// A tint of the row's own text colour: visible on a light menu and on a dark one, no fixed colour.
|
|
547
|
+
background-color: color-mix(in srgb, currentColor 35%, transparent);
|
|
527
548
|
transition: 0.3s;
|
|
528
549
|
border-radius: 999px;
|
|
529
550
|
|
|
@@ -534,7 +555,8 @@ const handleToggleOnline = () => {
|
|
|
534
555
|
width: 14px;
|
|
535
556
|
left: 3px;
|
|
536
557
|
bottom: 3px;
|
|
537
|
-
background
|
|
558
|
+
// The menu's own background: white on a light menu, dark on a dark one, always against the track.
|
|
559
|
+
background-color: var(--header-ui-config-bg);
|
|
538
560
|
transition: 0.3s;
|
|
539
561
|
border-radius: 50%;
|
|
540
562
|
}
|