@mundogamernetwork/shared-ui 1.1.1 → 1.1.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.
@@ -78,17 +78,21 @@ function goRegister() {
78
78
  flex-direction: column;
79
79
  gap: 0.85rem;
80
80
  padding: 1.25rem;
81
- width: 300px;
82
- max-width: 300px;
81
+ // Inline (default): fill the parent dropdown container.
82
+ width: 100%;
83
+ box-sizing: border-box;
83
84
  background: var(--header-ui-config-bg, var(--sidebar-bg, var(--body-bg-card, #1c1c1c)));
84
- border: 1px solid var(--header-ui-config-border, var(--border-card, rgba(255, 255, 255, 0.08)));
85
85
 
86
+ // Dropdown variant: self-positioned card with its own width + border.
86
87
  &--dropdown {
87
88
  position: absolute;
88
89
  top: 100%;
89
90
  right: 0;
90
91
  margin-top: 8px;
91
92
  z-index: 9999;
93
+ width: 300px;
94
+ max-width: 300px;
95
+ border: 1px solid var(--header-ui-config-border, var(--border-card, rgba(255, 255, 255, 0.08)));
92
96
  }
93
97
 
94
98
  &__login {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -54,10 +54,11 @@ export function getHttpService(): AxiosInstance {
54
54
  recoverFromSessionLoss();
55
55
  }
56
56
 
57
- // 5xx while a credentialed request is in flight is the classic
58
- // stale-oauth_token loop (OAuth rejects 500). Clear client-side so
59
- // the next load is a clean guest instead of an infinite failure.
60
- if (status >= 500) {
57
+ // 5xx ONLY on the auth probe = the stale-oauth_token loop (the session
58
+ // check itself fails). A 5xx from any OTHER endpoint (notifications,
59
+ // feed, etc.) is just a broken/erroring endpoint it must NOT clear
60
+ // the session, otherwise a single backend 500 logs the user out.
61
+ if (status >= 500 && isAuthProbe) {
61
62
  recoverFromSessionLoss();
62
63
  }
63
64