@mundogamernetwork/shared-ui 1.19.7 → 1.19.9

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.
@@ -165,6 +165,13 @@ const submitChatMessage = async () => {
165
165
  message: chatMessageInput.value,
166
166
  });
167
167
  chatMessageInput.value = "";
168
+ // The websocket is what normally draws the sent message; with no live connection (not configured, blocked, still
169
+ // connecting) it never would, so the conversation is read again instead.
170
+ if ((window as any).Echo?.connector?.pusher?.connection?.state !== "connected") {
171
+ const response = await getChat({ chat_id: selectedChatId.value });
172
+ chatMessages.value = response.data;
173
+ chatStore.setChatMessagesWidget(response.data, true);
174
+ }
168
175
  scrollToBottom(true);
169
176
  } catch {
170
177
  // silent fail
@@ -296,6 +296,9 @@ const handleToggleOnline = () => {
296
296
  <style scoped lang="scss">
297
297
  .ui-config-user {
298
298
  position: absolute;
299
+ // The menu reads left to right from its own left edge, whatever the host page does: some hosts set text-align on an
300
+ // ancestor of the header (right/center), which this subtree would inherit and push every label to the far side.
301
+ text-align: start;
299
302
  // A fixed width, not width:100%. This is position:absolute, so a
300
303
  // percentage width resolves against the nearest positioned ancestor —
301
304
  // every real host's profile-icon <li> (32px, position:relative for its
@@ -400,7 +403,7 @@ const handleToggleOnline = () => {
400
403
  height: 40px;
401
404
  width: 40px;
402
405
  border-radius: 0;
403
- background: #555;
406
+ background: var(--header-ui-config-border);
404
407
  // Was a hardcoded blue (--ck-highlight-marker-blue), the same on
405
408
  // every host regardless of that platform's own accent — fell
406
409
  // through to the same fallback chain .plans-pricing-link already
@@ -450,6 +453,13 @@ const handleToggleOnline = () => {
450
453
  }
451
454
  }
452
455
 
456
+ // The XP bar brings its own side padding (it is a card elsewhere); inside the menu it must start and end on the same
457
+ // edges as every other row (the 16px of .info-row), or it sits 8px further in than the rows around it.
458
+ .menu-group--identity :deep(.mg-xp-bar--compact) {
459
+ padding-left: 0;
460
+ padding-right: 0;
461
+ }
462
+
453
463
  .menu-group--nav {
454
464
  // The host's own links keep their markup; they only get the shared edge.
455
465
  gap: 0;
@@ -557,7 +567,7 @@ const handleToggleOnline = () => {
557
567
  font-size: 0.75rem;
558
568
  font-weight: 400;
559
569
  // Each platform brands this differently (TV's own fork used a fixed
560
- // lavender tint of its purple, #d297ff, rather than plain body text) —
570
+ // lavender tint of its purple, rather than plain body text) —
561
571
  // falling through the same accent tokens MgWalletPlanBadge/MgXpLevelBar
562
572
  // use lets every front's real accent take over here without a per-front
563
573
  // override.
@@ -84,8 +84,11 @@ function open() {
84
84
  font-size: 0.6875rem;
85
85
  font-weight: 700;
86
86
  line-height: 1;
87
- color: var(--mg-wn-on-accent);
88
- background: var(--mg-wn-accent);
87
+ // A quiet outline in the row's own text colour, not a solid block: the menu is a list of text rows, and a filled
88
+ // chip on one of them reads as an alert. The avatar badge (MgWhatsNewBadge) keeps the solid fill, it sits on a photo.
89
+ color: var(--mg-wn-text);
90
+ background: transparent;
91
+ border: 1px solid var(--mg-wn-border);
89
92
  border-radius: 0;
90
93
  }
91
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.19.7",
3
+ "version": "1.19.9",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",