WIP V improve UX [snapshot task 2]
Add the connections workspace (sidebar, editable slots, per-slot activity, removal dialog with focus wrapping), remove the downloadable local HTML and unreleased identity backup/restore, and start the 0.0.5 draft changelog. Restore the released 0.0.3/0.0.4 changelog entries. Enable focus emulation in browser checks so background tabs receive focus/blur events. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
58c3e2af86
commit
5f8c6a1916
21 files changed
+879
-306
No files matched your search
+128
-40
@@ -6,7 +6,7 @@
|
||||
--accent: #ff9b3d;
|
||||
--accent-soft: rgba(255, 155, 61, 0.15);
|
||||
--text: #e8eaf0;
|
||||
--muted: #8b91a3;
|
||||
--muted: #a0a7b8;
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -20,27 +20,14 @@ body {
|
||||
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
|
||||
}
|
||||
|
||||
#app {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding-inline: 0.9rem;
|
||||
}
|
||||
|
||||
main {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
#app { height: 100dvh; min-height: 420px; }
|
||||
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
left: 0.9rem;
|
||||
top: 0.5rem;
|
||||
transform: translateY(-200%);
|
||||
z-index: 1;
|
||||
z-index: 10;
|
||||
padding: 0.55rem 0.8rem;
|
||||
border-radius: 8px;
|
||||
background: var(--accent);
|
||||
@@ -54,18 +41,17 @@ main {
|
||||
|
||||
.panel {
|
||||
width: 100%;
|
||||
max-width: 680px;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
padding: 1.25rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.9rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 2rem 0 0.25rem;
|
||||
margin: 0;
|
||||
font-family: ui-monospace, 'Cascadia Code', monospace;
|
||||
}
|
||||
|
||||
@@ -75,18 +61,11 @@ h1 {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.app-download {
|
||||
color: var(--accent);
|
||||
margin: -0.5rem 0 1.5rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
width: 100%;
|
||||
max-width: 680px;
|
||||
}
|
||||
|
||||
.tabs button {
|
||||
@@ -236,20 +215,6 @@ a.download {
|
||||
margin: 0.2rem 0 0;
|
||||
}
|
||||
|
||||
footer {
|
||||
max-width: 680px;
|
||||
width: 100%;
|
||||
margin: 1.5rem 0 2.5rem;
|
||||
padding: 0 0.25rem;
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
footer p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.stun-select,
|
||||
.stun-input {
|
||||
width: 100%;
|
||||
@@ -297,3 +262,126 @@ p.stun-hint {
|
||||
|
||||
.device-settings { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; border: 1px solid var(--border); border-radius: 8px; }
|
||||
.device-settings input:not([type=checkbox]), .device-settings select, #contact-name { box-sizing: border-box; max-width: 100%; padding: 0.6rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
|
||||
|
||||
/* The connection shell stays in place while each workspace scrolls. */
|
||||
.app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); height: 100%; }
|
||||
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; background: #13161e; border-right: 1px solid var(--border); padding: 1.6rem 1rem 1rem; min-height: 0; overflow-y: auto; }
|
||||
.brand { display: flex; align-items: center; gap: 0.8rem; padding: 0 0.5rem 1.25rem; }
|
||||
.brand img { object-fit: contain; }
|
||||
.brand-name { display: block; font-family: ui-monospace, monospace; font-weight: 700; font-size: 1.45rem; letter-spacing: -0.05em; }
|
||||
.brand p { font-size: 0.75rem; color: var(--muted); margin: 0.25rem 0 0; }
|
||||
.sidebar-section-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 0.65rem; }
|
||||
.sidebar-section-heading h2, .eyebrow { text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted); margin: 0; font-weight: 650; }
|
||||
.sidebar-section-heading > span { font-size: 0.72rem; color: var(--muted); }
|
||||
.connection-nav { display: flex; flex-direction: column; gap: 0.35rem; }
|
||||
.connection-link { display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; padding: 0.75rem 0.6rem; border-radius: 9px; }
|
||||
.connection-link.selected { background: var(--accent-soft); border-color: #65472e; }
|
||||
.connection-avatar { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #252a36; font-size: 0.88rem; color: var(--muted); }
|
||||
.selected .connection-avatar { color: var(--accent); background: #473022; }
|
||||
.connection-label { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; flex: 1; }
|
||||
.connection-name { font-size: 0.87rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.connection-preview { font-size: 0.72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.connection-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7c8495; flex-shrink: 0; }
|
||||
.connection-dot.connected { background: #69d6a4; }
|
||||
.connection-dot.connecting { background: var(--accent); }
|
||||
.add-connection { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.82rem; background: transparent; border-style: dashed; }
|
||||
.add-connection > span { font-size: 1.1rem; }
|
||||
.sidebar-footer { margin-top: auto; padding: 1.5rem 0.65rem 0.25rem; color: var(--muted); font-size: 0.72rem; line-height: 1.65; }
|
||||
.sidebar-tag { font-weight: 600; color: var(--text); }
|
||||
.sidebar-footer p { margin: 0.5rem 0 1rem; }
|
||||
summary { cursor: pointer; color: var(--muted); font-size: 0.83rem; padding: 0.4rem 0; }
|
||||
summary:hover { color: var(--text); }
|
||||
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
||||
.privacy-details summary { font-size: 0.72rem; }
|
||||
.main-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
|
||||
.connection-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); background: #141720; }
|
||||
.connection-title { min-width: 0; flex: 1; }
|
||||
.title-line { display: flex; align-items: center; gap: 1rem; margin-top: 0.4rem; }
|
||||
.title-line h1 { margin: 0; font-size: 1.35rem; font-weight: 600; font-family: inherit; overflow-wrap: anywhere; }
|
||||
.header-action { font-size: 0.72rem; padding: 0.3rem 0.5rem; color: var(--muted); background: transparent; border-color: transparent; }
|
||||
.session-badge { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.74rem; white-space: nowrap; border: 1px solid var(--border); border-radius: 20px; padding: 0.45rem 0.7rem; }
|
||||
.session-badge.connected { color: #8ddbb6; border-color: #315344; }
|
||||
.workspace-scroll { flex: 1; overflow-y: auto; padding: 2rem 2.25rem; }
|
||||
.connection-workspace { display: grid; grid-template-columns: minmax(0, 720px) minmax(240px, 320px); gap: 2rem; max-width: 1200px; margin-inline: auto; align-items: start; }
|
||||
.session-column { min-width: 0; }
|
||||
.workspace-intro { margin-bottom: 1.4rem; }
|
||||
.workspace-intro h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.4rem; }
|
||||
.workspace-intro p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin: 0; }
|
||||
.tabs { width: fit-content; padding: 4px; gap: 4px; background: #1b1f2a; border: 1px solid var(--border); border-radius: 10px; }
|
||||
.tabs button { padding: 0.45rem 1.5rem; font-size: 0.85rem; border: none; background: transparent; }
|
||||
.tabs button.active { background: #3e3025; color: #ffb575; }
|
||||
.panel { box-shadow: 0 6px 28px #00000012; }
|
||||
.panel > .status { line-height: 1.6; margin: 0.1rem 0; }
|
||||
.panel > button { align-self: start; font-size: 0.88rem; }
|
||||
.dropzone { padding: 1.35rem 1rem; background: #141720; border-color: #414858; }
|
||||
.dropzone p { font-size: 0.85rem; line-height: 1.65; margin: 0 0 1rem; }
|
||||
input[type=file] { max-width: 100%; font-size: 0.8rem; }
|
||||
input[type=file]::file-selector-button { border: 1px solid #505667; border-radius: 6px; padding: 0.45rem 0.65rem; margin-right: 0.6rem; background: #242a36; color: var(--text); cursor: pointer; }
|
||||
.network-details > fieldset { margin-top: 0.65rem; }
|
||||
.activity-panel { min-width: 0; border-left: 1px solid var(--border); padding-left: 1.5rem; }
|
||||
.activity-heading { display: flex; align-items: center; gap: 0.6rem; }
|
||||
.activity-heading h2 { font-size: 0.9rem; font-weight: 600; margin: 0; }
|
||||
.activity-heading > span { font-size: 0.68rem; color: var(--muted); border-radius: 5px; padding: 0.15rem 0.35rem; background: #242936; }
|
||||
.empty-activity { padding: 3.5rem 0.25rem; text-align: center; }
|
||||
.empty-activity-icon { font-size: 1.6rem; display: grid; place-items: center; margin: 0 auto 1rem; width: 54px; height: 54px; border-radius: 16px; border: 1px solid var(--border); color: var(--muted); }
|
||||
.empty-activity h3 { font-size: 0.88rem; font-weight: 500; margin: 0 0 0.6rem; }
|
||||
.empty-activity p { font-size: 0.8rem; line-height: 1.7; color: var(--muted); }
|
||||
p.activity-note { font-size: 0.7rem; color: var(--muted); line-height: 1.6; }
|
||||
.empty-activity .activity-note { margin-top: 1.5rem; }
|
||||
.activity-list { list-style: none; padding: 0; margin: 1.25rem 0; }
|
||||
.activity-item { display: flex; gap: 0.7rem; padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 0.78rem; }
|
||||
.activity-item > div { min-width: 0; }
|
||||
.activity-icon { color: var(--accent); padding-top: 0.1rem; font-size: 1rem; }
|
||||
.activity-filename { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
|
||||
.activity-meta, .activity-result { color: var(--muted); margin: 0.4rem 0; font-size: 0.72rem; }
|
||||
.activity-item time { font-size: 0.68rem; color: var(--muted); }
|
||||
.storage-error { color: #ffb4a9; background: #422725; border: 1px solid #8e5147; border-radius: 8px; padding: 1rem; font-size: 0.85rem; line-height: 1.6; }
|
||||
.sidebar-toggle { display: none; }
|
||||
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
|
||||
@media (max-width: 1150px) {
|
||||
.app-shell { grid-template-columns: 230px minmax(0, 1fr); }
|
||||
.connection-workspace { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
|
||||
.activity-panel { border-left: 0; border-top: 1px solid var(--border); padding: 1.5rem 0 0; }
|
||||
.empty-activity { padding: 1.5rem 0; }
|
||||
.connection-header { padding-inline: 1.5rem; }
|
||||
.workspace-scroll { padding: 1.5rem; }
|
||||
}
|
||||
@media (max-width: 700px) {
|
||||
#app { height: auto; min-height: 100dvh; }
|
||||
.app-shell { display: flex; flex-direction: column; min-height: 100dvh; }
|
||||
.sidebar { display: none; border-right: 0; border-bottom: 1px solid var(--border); max-height: 60dvh; }
|
||||
.sidebar-open .sidebar { display: flex; }
|
||||
.brand { padding-bottom: 0; }
|
||||
.sidebar-footer { padding-top: 0; }
|
||||
.connection-header { flex-wrap: wrap; padding: 1rem; min-height: 0; gap: 0.75rem; }
|
||||
.sidebar-toggle { display: block; flex-basis: 100%; font-size: 0.8rem; text-align: left; background: transparent; padding: 0.5rem; }
|
||||
.workspace-scroll { padding: 1.25rem 1rem; overflow: visible; }
|
||||
.title-line { gap: 0.4rem; }
|
||||
.title-line h1 { font-size: 1.15rem; }
|
||||
.panel { padding: 1rem; }
|
||||
.session-badge { font-size: 0.65rem; padding: 0.35rem 0.5rem; }
|
||||
}
|
||||
|
||||
.title-line { flex-wrap: wrap; column-gap: 0.6rem; }
|
||||
|
||||
.editable-name { display: inline-flex; position: relative; max-width: min(100%, 26rem); min-width: 0; }
|
||||
.editable-name input { width: 100%; min-width: 0; max-width: 100%; border: 1px solid transparent; border-radius: 7px; padding: 0.12rem 1.65rem 0.12rem 0.4rem; margin-left: -0.4rem; font: inherit; font-size: 1.35rem; font-weight: 600; color: var(--text); background: #ffffff03; text-overflow: ellipsis; transition: border-color 120ms, background 120ms; }
|
||||
.editable-name input:hover { border-color: var(--border); background: #ffffff06; }
|
||||
.editable-name input:focus { border-color: var(--accent); outline: none; background: var(--bg); }
|
||||
.name-edit-icon { position: absolute; right: 0.65rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; pointer-events: none; opacity: 0.65; }
|
||||
.editable-name:focus-within .name-edit-icon { color: var(--accent); opacity: 1; }
|
||||
.app-dialog { width: min(460px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 1.5rem; border: 1px solid #414858; border-radius: 14px; color: var(--text); background: var(--panel); box-shadow: 0 24px 100px #0009; overflow-y: auto; }
|
||||
.app-dialog::backdrop { background: #080b12b8; backdrop-filter: blur(4px); }
|
||||
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
|
||||
.dialog-header h2 { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
|
||||
.dialog-close { flex-shrink: 0; border-color: transparent; background: transparent; color: var(--muted); padding: 0 0.4rem; font-size: 1.4rem; line-height: 1.2; }
|
||||
.dialog-body { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin-block: 1rem 1.5rem; }
|
||||
.dialog-body p { margin: 0.75rem 0; }
|
||||
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; }
|
||||
.dialog-actions button { font-size: 0.85rem; }
|
||||
button.danger { border-color: #b84d42; background: #672f2b; color: #ffe3df; }
|
||||
button.danger:hover:not(:disabled) { border-color: #ff9185; background: #813b34; }
|
||||
@media (max-width: 700px) {
|
||||
.editable-name input { font-size: 1.15rem; }
|
||||
.app-dialog { padding: 1.2rem; }
|
||||
}
|
||||
Reference in new issue
Block a user