incognitolm commited on
Commit Β·
87c5cf1
1
Parent(s): 6e9ada7
TOS & Subscription
Browse files- public/css/input.css +8 -15
- public/js/auth.js +1 -0
public/css/input.css
CHANGED
|
@@ -214,19 +214,17 @@
|
|
| 214 |
.attach-preview-remove:hover { background: var(--bg-hover); }
|
| 215 |
|
| 216 |
/* ββ TOS banner ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 217 |
-
/* The banner
|
| 218 |
-
JS in app.js sets bottom padding on .bottom-input-bar dynamically. */
|
| 219 |
#tos-banner {
|
| 220 |
font-size: 12px;
|
| 221 |
color: rgba(255,255,255,0.6);
|
| 222 |
padding: 10px;
|
| 223 |
-
|
| 224 |
-
bottom: 0;
|
| 225 |
-
left: 50%;
|
| 226 |
-
transform: translateX(-50%);
|
| 227 |
-
width: min(780px, calc(100vw - 48px));
|
| 228 |
text-align: center;
|
| 229 |
background-color: var(--bg);
|
|
|
|
|
|
|
|
|
|
| 230 |
}
|
| 231 |
#tos-banner p {
|
| 232 |
margin: 0;
|
|
@@ -307,18 +305,13 @@
|
|
| 307 |
color: var(--text);
|
| 308 |
}
|
| 309 |
|
| 310 |
-
/* ββ TOS banner:
|
| 311 |
#tos-banner {
|
| 312 |
-
bottom: 0 !important;
|
| 313 |
-
left: 0 !important;
|
| 314 |
-
transform: none !important;
|
| 315 |
-
width: 100% !important;
|
| 316 |
font-size: 11px;
|
| 317 |
padding: 6px 14px;
|
| 318 |
border-top: 1px solid var(--border);
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
text-align: center;
|
| 322 |
}
|
| 323 |
|
| 324 |
/* ββ Main area: padded for top bar + TOS ββ */
|
|
|
|
| 214 |
.attach-preview-remove:hover { background: var(--bg-hover); }
|
| 215 |
|
| 216 |
/* ββ TOS banner ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 217 |
+
/* The banner is now inside #main, positioned at the bottom. */
|
|
|
|
| 218 |
#tos-banner {
|
| 219 |
font-size: 12px;
|
| 220 |
color: rgba(255,255,255,0.6);
|
| 221 |
padding: 10px;
|
| 222 |
+
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 223 |
text-align: center;
|
| 224 |
background-color: var(--bg);
|
| 225 |
+
border-top: 1px solid var(--border);
|
| 226 |
+
margin-top: auto;
|
| 227 |
+
flex-shrink: 0;
|
| 228 |
}
|
| 229 |
#tos-banner p {
|
| 230 |
margin: 0;
|
|
|
|
| 305 |
color: var(--text);
|
| 306 |
}
|
| 307 |
|
| 308 |
+
/* ββ TOS banner: at bottom of main ββ */
|
| 309 |
#tos-banner {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
font-size: 11px;
|
| 311 |
padding: 6px 14px;
|
| 312 |
border-top: 1px solid var(--border);
|
| 313 |
+
margin-top: auto;
|
| 314 |
+
flex-shrink: 0;
|
|
|
|
| 315 |
}
|
| 316 |
|
| 317 |
/* ββ Main area: padded for top bar + TOS ββ */
|
public/js/auth.js
CHANGED
|
@@ -129,6 +129,7 @@ function applyAuthOk(msg) {
|
|
| 129 |
userProfile = msg.profile;
|
| 130 |
userSettings = msg.settings;
|
| 131 |
subscriptionInfo = msg.subscription || null;
|
|
|
|
| 132 |
const auth = loadAuth() || {};
|
| 133 |
saveAuth({ ...auth, userId: msg.userId, deviceToken: msg.deviceToken });
|
| 134 |
notifyListeners();
|
|
|
|
| 129 |
userProfile = msg.profile;
|
| 130 |
userSettings = msg.settings;
|
| 131 |
subscriptionInfo = msg.subscription || null;
|
| 132 |
+
console.log('Auth OK - subscription info:', subscriptionInfo);
|
| 133 |
const auth = loadAuth() || {};
|
| 134 |
saveAuth({ ...auth, userId: msg.userId, deviceToken: msg.deviceToken });
|
| 135 |
notifyListeners();
|