Files
WebDrop/web/src/features/channel/Workspace.module.css
T
justme 4b8d0b5a5f
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/dev-image Pipeline was successful
feat(web): discord-style chat, members pane, invitations and optimistic send [CI]
- chat: left-aligned discord-style messages with grouped senders, hover
  actions, an auto-growing composer and file cards
- send: render messages and files locally first and replace the
  placeholder when the worker publishes the real item; failures keep the
  text with a retry action
- navigation: space rail plus a flatter channel list with the space name
  header and collapsible groups
- members: right pane tabs (files / members) grouped by online, offline
  and pending users, with a prominent invite action and a top bar shortcut
- notifications: toast host for invite results; invitees get a toast with
  an accept action, and the invitation payload now carries the space name
  and inviter inside the encrypted grant
- users over devices: drop device names, the device list and device
  rename/release; senders show the account (guests show as guest) and the
  share panel only keeps links
- follow contract 7.0.0 (max_members, members_used, members_full, /join)
- docs: ui-design and frontend updated for the new layout and concepts
2026-10-14 22:19:25 +08:00

138 lines
2.3 KiB
CSS

.desktop {
--rail-width: 64px;
--nav-width: 240px;
display: grid;
grid-template-columns: var(--rail-width) var(--nav-width) minmax(260px, 1fr) 6px clamp(320px, var(--files-width, 36%), calc(100% - var(--rail-width) - var(--nav-width) - 266px));
grid-template-rows: auto minmax(0, 1fr);
height: 100vh;
height: 100dvh;
}
.desktop > header {
grid-column: 1 / -1;
border-bottom: 1px solid var(--line);
}
.rail,
.navigation,
.center,
.files,
.mobileContent {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
}
.rail {
overflow-y: auto;
background: var(--bg);
}
.navigation {
overflow-y: auto;
border-right: 1px solid var(--line);
background: var(--bg);
}
@media (width >= 900px) {
.navigation {
padding-bottom: 80px;
}
}
.files {
border-left: 1px solid var(--line);
}
.resize {
background: var(--line);
cursor: col-resize;
touch-action: none;
}
.resize:hover,
.resize:focus-visible {
background: var(--busy);
}
.mobile {
display: flex;
flex-direction: column;
height: 100vh;
height: 100dvh;
padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}
.mobile .navigation {
max-height: 30dvh;
flex-shrink: 0;
border-right: 0;
}
.mobileContent {
flex: 1;
overflow: hidden;
}
.tabs {
display: flex;
flex-shrink: 0;
border-bottom: 1px solid var(--line);
}
.tabs button {
flex: 1;
min-height: 44px;
border: 0;
background: var(--surface);
color: var(--text-dim);
font: inherit;
cursor: pointer;
}
.tabs button[aria-pressed="true"] {
border-bottom: 2px solid var(--accent);
color: var(--text);
}
.pendingCatalog {
padding: var(--space-2) var(--space-3);
border-top: 1px solid var(--line);
color: var(--text-dim);
font-size: 12px;
}
.drop {
position: fixed;
inset: var(--space-4);
z-index: 40;
display: grid;
place-items: center;
border: 2px dashed var(--line-strong);
border-radius: var(--radius-lg);
background: var(--scrim);
color: var(--on-accent);
font-size: 18px;
pointer-events: none;
}
.error {
position: fixed;
top: var(--bar-h);
left: var(--space-4);
right: var(--space-4);
z-index: 20;
padding: var(--space-3);
background: var(--surface);
color: var(--danger);
border: 1px solid var(--danger);
}
@media (width >= 900px) and (width <= 1100px) {
.desktop {
--nav-width: 220px;
}
}