- dissolve core-bridge into api (wire contract), domain (models), services (what the UI calls) and worker (everything that runs in the Web Worker, grouped by account, crypto, space, files, shares, runtime); regroup features, lib and store by responsibility and delete unused components - the UI only reads backend capabilities (domain/capabilities); one tokenRole picks the token, hasCode/isRetryable handle errors; pre-checks that decided permissions on the client are gone; tests fail if those rules are reimplemented - files go straight to the file domain (create, upload, download, delete, commit, cancel); the host sees one registration per file; creating a channel allocates a file domain and works even when the file service is down - file panel shows which channel the files belong to and its space usage; unlimited files preview in chat; videos get a stored cover; the file service status is shown - fix: console flooded by Retry-After reads on every upload frame
355 lines
5.5 KiB
CSS
355 lines
5.5 KiB
CSS
.layout {
|
|
display: grid;
|
|
grid-template-columns: 208px minmax(0, 1fr);
|
|
gap: var(--space-6);
|
|
min-height: min(520px, 68dvh);
|
|
}
|
|
|
|
.nav {
|
|
position: sticky;
|
|
top: 0;
|
|
align-self: start;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.who {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
min-width: 0;
|
|
padding: var(--space-2);
|
|
}
|
|
|
|
.avatar,
|
|
.avatarLarge {
|
|
display: grid;
|
|
flex: 0 0 40px;
|
|
place-items: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--radius-avatar);
|
|
object-fit: cover;
|
|
}
|
|
|
|
.avatarFallback {
|
|
background: var(--surface-2);
|
|
color: var(--text-dim);
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.name {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.name strong,
|
|
.name small {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.name small {
|
|
color: var(--text-dim);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.tabs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1);
|
|
}
|
|
|
|
.tabs button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
min-height: 40px;
|
|
padding: 0 var(--space-3);
|
|
border: 0;
|
|
border-radius: var(--radius-md);
|
|
background: transparent;
|
|
color: var(--text-dim);
|
|
font: inherit;
|
|
font-size: 14px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tabs button:hover {
|
|
background: var(--accent-soft);
|
|
color: var(--text);
|
|
}
|
|
|
|
.tabs button[aria-selected="true"] {
|
|
background: var(--accent-soft);
|
|
color: var(--text);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tabs button span {
|
|
flex: 1;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tabs em {
|
|
min-width: 20px;
|
|
padding: 0 var(--space-1);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--danger);
|
|
color: var(--on-accent);
|
|
font-size: 11px;
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
line-height: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.content {
|
|
min-width: 0;
|
|
}
|
|
|
|
.page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.page h2 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.page h3 {
|
|
margin: var(--space-2) 0 0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.hint {
|
|
margin: 0;
|
|
color: var(--text-dim);
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
color: var(--text-dim);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.field input {
|
|
min-width: 0;
|
|
min-height: 44px;
|
|
padding: 0 var(--space-3);
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface-2);
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.readonly {
|
|
color: var(--text);
|
|
font-family: var(--font-mono);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.avatarRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.avatarLarge {
|
|
flex-basis: 72px;
|
|
width: 72px;
|
|
height: 72px;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.avatarSide {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
min-width: 0;
|
|
}
|
|
|
|
.footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
padding-top: var(--space-3);
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius-md);
|
|
list-style: none;
|
|
}
|
|
|
|
.list:empty {
|
|
display: none;
|
|
}
|
|
|
|
.item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
min-height: 56px;
|
|
padding: var(--space-2) var(--space-3);
|
|
}
|
|
|
|
.item + .item {
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.item > svg {
|
|
flex-shrink: 0;
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.itemMain {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.itemMain strong {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.itemMain small {
|
|
color: var(--text-dim);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.itemMain input {
|
|
min-height: 36px;
|
|
padding: 0 var(--space-2);
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface-2);
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.itemMain input:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.field input:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.badge {
|
|
margin-inline-start: var(--space-2);
|
|
padding: 0 var(--space-1);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--ok-soft);
|
|
color: var(--ok);
|
|
font-size: 11px;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.inline {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
padding: var(--space-3);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.group {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-4);
|
|
padding: var(--space-3) 0;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.groupText {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1);
|
|
min-width: 0;
|
|
}
|
|
|
|
.groupText small {
|
|
color: var(--text-dim);
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.danger {
|
|
color: var(--danger);
|
|
}
|
|
|
|
@media (width <= 720px) {
|
|
.layout {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: var(--space-4);
|
|
min-height: 0;
|
|
}
|
|
|
|
.nav {
|
|
position: static;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.who {
|
|
display: none;
|
|
}
|
|
|
|
.tabs {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.group {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
}
|
|
}
|
|
|
|
.avatarButton {
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: var(--radius-avatar);
|
|
background: none;
|
|
cursor: zoom-in;
|
|
}
|