Compare commits

...
Author SHA1 Message Date
MoepchiandClaude Opus 5.5 b11a7a73b8 Mobile: keep the mobile layout under Nova, Pulse and IDE themes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-11-09 10:12:04 +00:00
MoepchiandClaude Opus 5.5 b5e2ce3f7e Mobile: hamburger menu opens as a left drawer sized to its entries
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-11-09 10:01:51 +00:00
MoepchiandClaude Opus 5.5 e5cda8301d Mobile: back chevron vertically centred with its label
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-11-09 09:57:50 +00:00
MoepchiandClaude Opus 5.5 708ad72e59 Mobile: dialogs as bottom sheets / full-screen pages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-11-09 09:51:22 +00:00
MoepchiandClaude Opus 5.5 85fa73c7d6 Hamburger menu: picking an entry closes the whole panel
It stayed open on top of the dialog the entry had just opened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-11-09 09:44:16 +00:00
MoepchiandClaude Opus 5.5 8a3e1c230e Mobile: open submenu fills the screen with a sticky back row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-11-09 09:38:09 +00:00
MoepchiandClaude Opus 5.5 b50dc338df Mobile: hamburger menu drills into one submenu with a back row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-11-09 09:34:56 +00:00
MoepchiandClaude Opus 5.5 b40ada8cff Mobile options: no outline on the last-picked section
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-11-09 09:30:38 +00:00
MoepchiandClaude Opus 5.5 fa2c68b622 Mobile: options as full-screen list -> page with back button
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-11-09 09:30:30 +00:00
MoepchiandClaude Opus 5.5 54046d51fe Mobile: active tab highlight wraps icon and label
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-11-09 09:23:51 +00:00
MoepchiandClaude Opus 5.5 9364a7d48a Mobile: readable accent buttons, calmer disconnected state, no demo toggle on phones
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-11-09 09:21:33 +00:00
MoepchiandClaude Opus 5.5 dab1a7637e Demo mobile preview: keep floating buttons inside the phone frame
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-11-09 09:19:15 +00:00
2 changed files with 515 additions and 14 deletions

No files matched your search

+494 -9
View File
@@ -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
View File
@@ -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