@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
|
-
|
|
82
|
-
|
|
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
package/services/httpService.ts
CHANGED
|
@@ -54,10 +54,11 @@ export function getHttpService(): AxiosInstance {
|
|
|
54
54
|
recoverFromSessionLoss();
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
// 5xx
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
|
|
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
|
|