mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 18:02:49 +08:00
Compare commits
16
Commits
a4da3409bc
...
9878b1caf3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9878b1caf3 | ||
|
|
36f510b28e | ||
|
|
faef5c7d19 | ||
|
|
ecf0285f1c | ||
|
|
b11a7a73b8 | ||
|
|
b5e2ce3f7e | ||
|
|
e5cda8301d | ||
|
|
708ad72e59 | ||
|
|
85fa73c7d6 | ||
|
|
8a3e1c230e | ||
|
|
b50dc338df | ||
|
|
b40ada8cff | ||
|
|
fa2c68b622 | ||
|
|
54046d51fe | ||
|
|
9364a7d48a | ||
|
|
dab1a7637e |
No files matched your search
@@ -56,8 +56,8 @@
|
||||
<th>Mobile</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="72%"><img src="docs/screenshots/webspeak_current.png" width="100%" alt="WebSpeak3 desktop client connected to a TeamSpeak server"></td>
|
||||
<td width="28%" align="center"><img src="docs/screenshots/webspeak_mobile.png" width="260" alt="WebSpeak3 mobile client connected to a TeamSpeak server"></td>
|
||||
<td width="72%"><img src="docs/screenshots/webspeak_desktop.png" width="100%" alt="WebSpeak3 desktop client connected to a TeamSpeak server"></td>
|
||||
<td width="28%" align="center"><img src="docs/screenshots/webspeak_mobile_phone.png" width="260" alt="WebSpeak3 mobile client connected to a TeamSpeak server"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -256,7 +256,7 @@ All optional; add them under `environment:` in your compose override next to `PO
|
||||
|
||||
> **Trust model:** the gateway speaks the TeamSpeak protocol on the user's behalf, so whoever runs it necessarily handles their identity key, server/channel passwords and privilege keys (they're kept out of process listings, but the operator can still see them). Only use gateways you trust, and serve them over HTTPS/WSS (`TLS_CERT`/`TLS_KEY` or a TLS-terminating proxy) - plain HTTP exposes all of that on the wire. File uploads are limited to 24 MiB, downloads to 25 MiB.
|
||||
|
||||
> **Stored in the browser:** identities (including their private keys), favorites with any passwords you typed into them, and settings live in the browser's `localStorage`, unencrypted - the same way the native client keeps them in its settings files. Anyone with access to your browser profile can read them; leave favorite password fields empty on shared machines and export identities you care about. Server banners load directly from the host the server admin configured; turn them off under Options → Application if you don't want that host to see your IP.
|
||||
> **Stored in the browser:** identities (including their private keys), favorites with any passwords you typed into them, and settings live in the browser's `localStorage`, unencrypted by default - the same way the native client keeps them in its settings files. Anyone with access to your browser profile can read them. To encrypt identities and saved passwords, set a master password under Options → Security; it's then asked for once per session (every reload or new tab), and without it that data can't be recovered, so export identities you care about first. Server banners load directly from the host the server admin configured; turn them off under Options → Application if you don't want that host to see your IP.
|
||||
|
||||
<details>
|
||||
<summary><b>🛠️ Manual installation (without Docker)</b></summary>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 421 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 115 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 59 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
+494
-9
@@ -43,6 +43,9 @@
|
||||
.ts-app.ts-force-mobile {
|
||||
max-width: 390px;
|
||||
margin: 0 auto;
|
||||
/* Makes position:fixed children (FABs, dialogs) stick to this phone frame
|
||||
instead of the browser window. */
|
||||
transform: translateZ(0);
|
||||
box-shadow:
|
||||
0 0 0 1px rgba(0, 0, 0, 0.4),
|
||||
0 0 40px rgba(0, 0, 0, 0.5);
|
||||
@@ -5241,7 +5244,7 @@ input.ts-identities-uid {
|
||||
border: none;
|
||||
border-radius: 22px;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
color: var(--bg);
|
||||
}
|
||||
|
||||
/* Bottom: voice bar + tabs */
|
||||
@@ -5319,7 +5322,7 @@ input.ts-identities-uid {
|
||||
border: none;
|
||||
border-radius: var(--m-radius, 14px);
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
color: var(--bg);
|
||||
font-size: 16px;
|
||||
font-weight: 650;
|
||||
}
|
||||
@@ -5343,6 +5346,8 @@ input.ts-identities-uid {
|
||||
font-weight: 600;
|
||||
position: relative;
|
||||
touch-action: manipulation;
|
||||
margin: 4px 18px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.ts-mobile-icon {
|
||||
@@ -5355,13 +5360,7 @@ input.ts-identities-uid {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.ts-mobile-tab-active::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
width: 56px;
|
||||
height: 30px;
|
||||
border-radius: 15px;
|
||||
.ts-mobile-tab-active {
|
||||
background: color-mix(in srgb, var(--accent) 18%, transparent);
|
||||
}
|
||||
|
||||
@@ -5405,3 +5404,489 @@ input.ts-identities-uid {
|
||||
order: -1;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
}
|
||||
|
||||
/* Disconnected: the header already says so, keep the panel calm and centered. */
|
||||
.ts-app.ts-mobile .ts-tree-panel > .ts-tree-empty:only-child {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-style: normal;
|
||||
font-size: 16px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* --- Mobile: settings dialogs as full-screen pages ------------------------ */
|
||||
|
||||
.ts-options-back {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
width: 100% !important;
|
||||
max-height: none;
|
||||
height: 100dvh;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-dialog-titlebar {
|
||||
min-height: 56px;
|
||||
padding: 0 4px 0 16px;
|
||||
font-size: 17px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-dialog-titlebar > button:last-child {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-options-body {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-dialog-buttons {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Section list */
|
||||
.ts-app.ts-mobile .ts-options-dialog-nav .ts-options-sidebar {
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
width: 100%;
|
||||
padding: 8px 12px calc(16px + env(safe-area-inset-bottom));
|
||||
border: none;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog-nav .ts-options-sidebar-item {
|
||||
min-height: 52px;
|
||||
padding: 0 12px;
|
||||
gap: 14px;
|
||||
font-size: 16px;
|
||||
border-radius: 12px;
|
||||
background: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog-nav .ts-options-sidebar-item::after {
|
||||
content: "›";
|
||||
margin-left: auto;
|
||||
font-size: 22px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog-nav .ts-options-sidebar-icon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10px;
|
||||
background: var(--input-bg);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog-nav:not(.ts-options-detail) .ts-options-content,
|
||||
.ts-app.ts-mobile .ts-options-dialog-nav.ts-options-detail .ts-options-sidebar,
|
||||
.ts-app.ts-mobile .ts-options-dialog-nav.ts-options-detail .ts-options-title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-detail .ts-options-back {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: 44px;
|
||||
padding: 0 8px 0 0;
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-back span {
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
/* Other dialogs sharing this layout (server edit): tabs as a scrolling pill row */
|
||||
.ts-app.ts-mobile .ts-options-dialog:not(.ts-options-dialog-nav) .ts-options-sidebar {
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
width: 100%;
|
||||
gap: 6px;
|
||||
padding: 8px 12px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog:not(.ts-options-dialog-nav) .ts-options-sidebar-item {
|
||||
min-height: 38px;
|
||||
padding: 0 14px;
|
||||
border-radius: 999px;
|
||||
white-space: nowrap;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog:not(.ts-options-dialog-nav) .ts-dialog-buttons {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* Page content: touch-sized controls */
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-options-content {
|
||||
padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-options-content select,
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-options-content input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-options-content textarea {
|
||||
min-height: 44px;
|
||||
font-size: 16px;
|
||||
border-radius: 10px;
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-options-content button {
|
||||
min-height: 44px;
|
||||
border-radius: 10px;
|
||||
padding: 0 14px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-options-content input[type="checkbox"],
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-options-content input[type="radio"] {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-options-content fieldset {
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-options-dialog .ts-options-content label {
|
||||
min-height: 36px;
|
||||
}
|
||||
|
||||
/* --- Mobile: ☰ menu as drill-down (tap "Extras" -> only its items) ------- */
|
||||
|
||||
.ts-app.ts-mobile .ts-menubar-items.ts-nova-menu-panel.ts-nova-menu-panel-open {
|
||||
z-index: 600;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile:has(.ts-nova-menu-panel-open) .ts-donate-fab,
|
||||
.ts-app.ts-mobile:has(.ts-nova-menu-panel-open) .ts-feedback-fab-wrap {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open .ts-menubar-dropdown > .ts-menubar-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open .ts-menubar-dropdown > .ts-menubar-item::after {
|
||||
content: "›";
|
||||
margin-left: auto;
|
||||
font-size: 22px;
|
||||
font-weight: 400;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* One submenu open: hide its siblings, its trigger becomes the back row. */
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open:has(> .ts-menubar-dropdown > .ts-menu) > .ts-menubar-dropdown:not(:has(> .ts-menu)) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open .ts-menubar-dropdown:has(> .ts-menu) > .ts-menubar-item {
|
||||
font-size: 17px;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
border-radius: 10px 10px 0 0;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open .ts-menubar-dropdown:has(> .ts-menu) > .ts-menubar-item::before {
|
||||
content: "";
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
/* Back chevron drawn with borders: a glyph sits on the baseline and looks low. */
|
||||
.ts-app.ts-mobile .ts-options-back span,
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open .ts-menubar-dropdown:has(> .ts-menu) > .ts-menubar-item::before {
|
||||
display: inline-block;
|
||||
flex: none;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin-left: 6px;
|
||||
border-left: 2.5px solid var(--accent);
|
||||
border-bottom: 2.5px solid var(--accent);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open .ts-menubar-dropdown:has(> .ts-menu) > .ts-menubar-item::after {
|
||||
content: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-menubar-items.ts-nova-menu-panel-open .ts-menu {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open .ts-menu-item {
|
||||
min-height: 50px;
|
||||
padding: 0 10px;
|
||||
gap: 14px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open .ts-menu-item-icon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10px;
|
||||
background: var(--input-bg);
|
||||
font-size: 17px;
|
||||
flex-shrink: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Keyboard shortcuts mean nothing on a phone. */
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open .ts-menu-item-shortcut {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open .ts-menu-separator {
|
||||
margin: 6px 10px;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
/* An open submenu takes the whole screen, its back row acts as the title bar. */
|
||||
.ts-app.ts-mobile .ts-menubar-items.ts-nova-menu-panel.ts-nova-menu-panel-open:has(> .ts-menubar-dropdown > .ts-menu) {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
max-height: none;
|
||||
margin: 0;
|
||||
padding: 0 8px calc(16px + env(safe-area-inset-bottom));
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open .ts-menubar-dropdown:has(> .ts-menu) > .ts-menubar-item {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
min-height: 56px;
|
||||
margin: 0 -8px 6px;
|
||||
padding: env(safe-area-inset-top) 16px 0 12px;
|
||||
border-radius: 0;
|
||||
background: var(--bg-toolbar-1);
|
||||
}
|
||||
|
||||
/* --- Mobile: all other dialogs ------------------------------------------- */
|
||||
/* Small prompts slide up as a bottom sheet; list/admin dialogs fill the
|
||||
screen. :where() keeps this below the options-dialog rules above. */
|
||||
|
||||
.ts-app.ts-mobile .ts-dialog-backdrop {
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile :where(.ts-dialog) {
|
||||
width: 100% !important;
|
||||
min-width: 0 !important;
|
||||
max-width: none !important;
|
||||
max-height: 100dvh;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
border: none;
|
||||
border-radius: 20px 20px 0 0;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile :where(
|
||||
.ts-client-log-dialog, .ts-server-protocol-log-dialog, .ts-ban-list-dialog,
|
||||
.ts-complain-list-dialog, .ts-offline-messages-dialog, .ts-collected-urls-dialog,
|
||||
.ts-contacts-dialog, .ts-identities-dialog, .ts-favorites-dialog,
|
||||
.ts-file-browser-dialog, .ts-transfers-window, .ts-perms-editor-dialog,
|
||||
.ts-permission-overview-dialog, .ts-whisper-lists-dialog,
|
||||
.ts-whisper-history-dialog, .ts-server-icons-dialog, .ts-group-assign-dialog,
|
||||
.ts-tos-dialog, .ts-connection-info-dialog, .ts-feedback-dialog, .ts-about-dialog
|
||||
) {
|
||||
height: 100dvh;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile :where(.ts-dialog) > .ts-dialog-titlebar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
min-height: 56px;
|
||||
padding: 0 4px 0 16px;
|
||||
font-size: 17px;
|
||||
background: var(--bg-toolbar-1);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile :where(.ts-dialog) > .ts-dialog-titlebar button {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile :where(.ts-dialog) > .ts-dialog-buttons {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
z-index: 2;
|
||||
margin-top: auto;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
padding: 10px 12px;
|
||||
background: var(--bg-toolbar-1);
|
||||
}
|
||||
|
||||
/* The scrolling list inside a full-screen dialog takes the free height. */
|
||||
.ts-app.ts-mobile :where(.ts-dialog) > :not(.ts-dialog-titlebar):not(.ts-dialog-buttons) {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile :where(.ts-dialog) table {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile :where(.ts-dialog) button {
|
||||
min-height: 44px;
|
||||
padding: 0 16px;
|
||||
border-radius: 10px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile :where(.ts-dialog) :where(select, textarea,
|
||||
input:not([type="checkbox"]):not([type="radio"]):not([type="range"])) {
|
||||
min-height: 44px;
|
||||
font-size: 16px;
|
||||
border-radius: 10px;
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile :where(.ts-dialog) :where(input[type="checkbox"], input[type="radio"]) {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile :where(.ts-dialog) .ts-dialog-field {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* Mobile: buttons share each wrapped row evenly; log-level filters as a chip row. */
|
||||
.ts-app.ts-mobile :where(.ts-dialog) > .ts-dialog-buttons > div {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex: 1 1 100%;
|
||||
gap: 8px;
|
||||
}
|
||||
.ts-app.ts-mobile :where(.ts-dialog) > .ts-dialog-buttons button {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
.ts-app.ts-mobile :where(.ts-dialog) .ts-dialog-row {
|
||||
align-items: stretch;
|
||||
}
|
||||
.ts-app.ts-mobile .ts-log-level-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 6px 14px;
|
||||
}
|
||||
.ts-app.ts-mobile .ts-log-level-row > .ts-dialog-checkbox {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* --- Mobile: ☰ top level as a left drawer, as wide as its longest entry ---- */
|
||||
.ts-app.ts-mobile .ts-menubar-items.ts-nova-menu-panel.ts-nova-menu-panel-open:not(:has(> .ts-menubar-dropdown > .ts-menu)) {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: auto;
|
||||
width: max-content;
|
||||
max-width: 85%;
|
||||
max-height: none;
|
||||
margin: 0;
|
||||
padding: calc(12px + env(safe-area-inset-top)) 8px calc(12px + env(safe-area-inset-bottom));
|
||||
border: none;
|
||||
border-radius: 0 20px 20px 0;
|
||||
box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45), 8px 0 24px rgba(0, 0, 0, 0.3);
|
||||
animation: ts-mobile-drawer-in 0.2s ease-out;
|
||||
}
|
||||
|
||||
.ts-app.ts-mobile .ts-nova-menu-panel-open:not(:has(> .ts-menubar-dropdown > .ts-menu)) .ts-menubar-dropdown > .ts-menubar-item {
|
||||
gap: 28px;
|
||||
}
|
||||
|
||||
@keyframes ts-mobile-drawer-in {
|
||||
from { transform: translateX(-100%); }
|
||||
}
|
||||
|
||||
/* --- Mobile × design themes: themes keep colours/fonts, the mobile layout wins */
|
||||
/* Nova/Pulse reorder the app's flex children; pin the mobile bar + ticker last. */
|
||||
.ts-app.ts-mobile > .ts-mobile-bottom {
|
||||
order: 10;
|
||||
}
|
||||
.ts-app.ts-mobile > .ts-news-ticker {
|
||||
order: 11;
|
||||
}
|
||||
|
||||
/* Nova/Pulse send buttons are icon-only; keep them round instead of the text pill. */
|
||||
.ts-app.ts-mobile:is(.ts-design-nova, .ts-design-pulse) .ts-chat-input-row button {
|
||||
width: 44px;
|
||||
min-width: 44px;
|
||||
padding: 0;
|
||||
font-size: 0;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/* IDE: undo its floating hamburger and three-column grid. */
|
||||
.ts-app.ts-mobile.ts-design-ide > .ts-menubar {
|
||||
height: auto;
|
||||
padding: 0 12px;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
}
|
||||
.ts-app.ts-mobile.ts-design-ide > .ts-menubar .ts-nova-menu-dropdown {
|
||||
position: static;
|
||||
order: 0;
|
||||
}
|
||||
.ts-app.ts-mobile.ts-design-ide > .ts-body {
|
||||
display: flex;
|
||||
}
|
||||
.ts-app.ts-mobile.ts-design-ide .ts-upper {
|
||||
display: flex;
|
||||
}
|
||||
.ts-app.ts-mobile.ts-design-ide .ts-tree-panel {
|
||||
max-height: none;
|
||||
}
|
||||
+21
-5
@@ -8462,11 +8462,19 @@ function OptionsDialog({
|
||||
const t = useT();
|
||||
const active = OPTIONS_SECTIONS.find((s) => s.id === section) ?? OPTIONS_SECTIONS[0];
|
||||
const backdrop = useBackdropDismiss(onClose);
|
||||
// Mobile only (CSS): list of sections first, tapping one shows just that page.
|
||||
const [mobileDetail, setMobileDetail] = useState(false);
|
||||
return (
|
||||
<div className="ts-dialog-backdrop" {...backdrop}>
|
||||
<div className="ts-dialog ts-options-dialog" onClick={(e) => e.stopPropagation()}>
|
||||
<div
|
||||
className={`ts-dialog ts-options-dialog ts-options-dialog-nav${mobileDetail ? " ts-options-detail" : ""}`}
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
<div className="ts-dialog-titlebar">
|
||||
<span>{t("options.title")}</span>
|
||||
<button className="ts-options-back" onClick={() => setMobileDetail(false)}>
|
||||
<span aria-hidden="true">‹</span> {t(`options.section.${active.id}`)}
|
||||
</button>
|
||||
<span className="ts-options-title">{t("options.title")}</span>
|
||||
<button onClick={onClose} title={t("dialog.close")} aria-label={t("dialog.close")}>
|
||||
✕
|
||||
</button>
|
||||
@@ -8477,7 +8485,10 @@ function OptionsDialog({
|
||||
<button
|
||||
key={s.id}
|
||||
className={`ts-options-sidebar-item${s.id === active.id ? " ts-options-sidebar-item-active" : ""}`}
|
||||
onClick={() => onSectionChange(s.id)}
|
||||
onClick={() => {
|
||||
onSectionChange(s.id);
|
||||
setMobileDetail(true);
|
||||
}}
|
||||
>
|
||||
<span className="ts-options-sidebar-icon">{s.icon}</span>
|
||||
<span>{t(`options.section.${s.id}`)}</span>
|
||||
@@ -12623,9 +12634,9 @@ function AppInner() {
|
||||
<a href="https://github.com/WebSpeak3/webspeak3" target="_blank" rel="noreferrer">
|
||||
Get WebSpeak3
|
||||
</a>
|
||||
<button className="ts-demo-mobile-toggle" onClick={() => setDemoForceMobile((v) => !v)}>
|
||||
{!narrowScreen && <button className="ts-demo-mobile-toggle" onClick={() => setDemoForceMobile((v) => !v)}>
|
||||
{demoForceMobile ? "🖥 Desktop view" : "📱 Mobile view"}
|
||||
</button>
|
||||
</button>}
|
||||
</div>
|
||||
)}
|
||||
<div className="ts-menubar">
|
||||
@@ -12644,6 +12655,11 @@ function AppInner() {
|
||||
className={`ts-menubar-items${compactMenu ? " ts-nova-menu-panel" : ""}${
|
||||
novaMenuOpen ? " ts-nova-menu-panel-open" : ""
|
||||
}`}
|
||||
// Picking an entry closes the whole ☰ panel, not just the submenu -
|
||||
// otherwise it stays on top of the dialog the entry just opened.
|
||||
onClick={(e) => {
|
||||
if (compactMenu && (e.target as HTMLElement).closest(".ts-menu-item")) setNovaMenuOpen(false);
|
||||
}}
|
||||
>
|
||||
<div className="ts-menubar-dropdown" ref={connectionsMenuRef}>
|
||||
<button
|
||||
|
||||
@@ -935,7 +935,7 @@
|
||||
"securitySettings.masterNew": "Nové hlavní heslo",
|
||||
"securitySettings.masterRepeat": "Zopakovat",
|
||||
"securitySettings.masterMismatch": "Hesla se neshodují.",
|
||||
"securitySettings.masterNote": "Dobře si ho zapamatujte: bez něj přijdete o identity a uložená hesla.",
|
||||
"securitySettings.masterNote": "Budete ho muset zadat znovu v každé nové relaci (po obnovení stránky nebo v nové kartě). Dobře si ho zapamatujte: bez něj přijdete o identity a uložená hesla.",
|
||||
"sync.subtitle": "Tvá data na všech zařízeních",
|
||||
"sync.intro": "Účet je jen náhodné číslo, volitelně s heslem. Žádný e-mail, žádné jméno. Vše se před nahráním zašifruje na tvém zařízení. Server vidí jen nečitelná data.",
|
||||
"sync.create.title": "Nový účet",
|
||||
|
||||
@@ -935,7 +935,7 @@
|
||||
"securitySettings.masterNew": "Neues Master Passwort",
|
||||
"securitySettings.masterRepeat": "Wiederholen",
|
||||
"securitySettings.masterMismatch": "Die Passwörter stimmen nicht überein.",
|
||||
"securitySettings.masterNote": "Merk es dir gut: Ohne das Passwort sind Identitäten und gespeicherte Passwörter weg.",
|
||||
"securitySettings.masterNote": "Du musst es bei jeder neuen Sitzung (Neuladen oder neuer Tab) wieder eingeben. Merk es dir gut: Ohne das Passwort sind Identitäten und gespeicherte Passwörter weg.",
|
||||
"sync.subtitle": "Deine Daten auf allen Geräten",
|
||||
"sync.intro": "Ein Konto besteht nur aus einer zufälligen Nummer, optional mit Passwort. Keine Mail, kein Name. Alles wird auf deinem Gerät verschlüsselt, bevor es hochgeladen wird. Der Server sieht nur unlesbare Daten.",
|
||||
"sync.create.title": "Neues Konto",
|
||||
|
||||
@@ -935,7 +935,7 @@
|
||||
"securitySettings.masterNew": "New master password",
|
||||
"securitySettings.masterRepeat": "Repeat",
|
||||
"securitySettings.masterMismatch": "The passwords don't match.",
|
||||
"securitySettings.masterNote": "Remember it well: without it, identities and saved passwords are lost.",
|
||||
"securitySettings.masterNote": "You'll have to enter it again in every new session (reload or new tab). Remember it well: without it, identities and saved passwords are lost.",
|
||||
"sync.subtitle": "Your data on all your devices",
|
||||
"sync.intro": "An account is just a random number, optionally with a password. No email, no name. Everything is encrypted on your device before it is uploaded. The server only sees unreadable data.",
|
||||
"sync.create.title": "New account",
|
||||
|
||||
@@ -934,7 +934,7 @@
|
||||
"securitySettings.masterNew": "رمز اصلی جدید",
|
||||
"securitySettings.masterRepeat": "تکرار",
|
||||
"securitySettings.masterMismatch": "رمزها یکسان نیستند.",
|
||||
"securitySettings.masterNote": "آن را به خاطر بسپارید: بدون آن، هویتها و رمزهای ذخیرهشده از دست میروند.",
|
||||
"securitySettings.masterNote": "باید آن را در هر جلسهٔ جدید (بارگذاری دوباره یا زبانهٔ جدید) دوباره وارد کنید. آن را به خاطر بسپارید: بدون آن، هویتها و رمزهای ذخیرهشده از دست میروند.",
|
||||
"sync.subtitle": "دادههای تو روی همه دستگاهها",
|
||||
"sync.intro": "حساب فقط یک شماره تصادفی است، در صورت تمایل با رمز عبور. بدون ایمیل، بدون نام. همه چیز پیش از بارگذاری روی دستگاه تو رمزگذاری میشود. سرور فقط دادههای ناخوانا میبیند.",
|
||||
"sync.create.title": "حساب جدید",
|
||||
|
||||
@@ -935,7 +935,7 @@
|
||||
"securitySettings.masterNew": "Новый мастер-пароль",
|
||||
"securitySettings.masterRepeat": "Повторите",
|
||||
"securitySettings.masterMismatch": "Пароли не совпадают.",
|
||||
"securitySettings.masterNote": "Запомните его хорошо: без него идентичности и сохранённые пароли будут потеряны.",
|
||||
"securitySettings.masterNote": "Его нужно будет вводить заново в каждом новом сеансе (после перезагрузки или в новой вкладке). Запомните его хорошо: без него идентичности и сохранённые пароли будут потеряны.",
|
||||
"sync.subtitle": "Ваши данные на всех ваших устройствах",
|
||||
"sync.intro": "Аккаунт – это просто случайный номер, при желании с паролем. Без e-mail, без имени. Всё шифруется на вашем устройстве перед загрузкой. Сервер видит только нечитаемые данные.",
|
||||
"sync.create.title": "Новый аккаунт",
|
||||
|
||||
@@ -934,7 +934,7 @@
|
||||
"securitySettings.masterNew": "新主密码",
|
||||
"securitySettings.masterRepeat": "重复",
|
||||
"securitySettings.masterMismatch": "两次密码不一致。",
|
||||
"securitySettings.masterNote": "请牢记:没有它,身份和已保存的密码将丢失。",
|
||||
"securitySettings.masterNote": "每次新会话(重新加载或新标签页)都需要重新输入。请牢记:没有它,身份和已保存的密码将丢失。",
|
||||
"sync.subtitle": "在所有设备上使用你的数据",
|
||||
"sync.intro": "账户只是一个随机号码,可选附加密码。无需邮箱,无需姓名。所有数据在上传前都会在你的设备上加密,服务器只能看到无法读取的数据。",
|
||||
"sync.create.title": "新账户",
|
||||
|
||||
Reference in new issue
Block a user