Files
WebDrop/web/src/app/ToastHost.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

77 lines
1.2 KiB
CSS

.host {
position: fixed;
right: max(var(--space-4), env(safe-area-inset-right));
bottom: max(var(--space-4), env(safe-area-inset-bottom));
z-index: 60;
display: flex;
flex-direction: column;
gap: var(--space-2);
width: min(360px, calc(100vw - var(--space-6)));
pointer-events: none;
}
.toast {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
border-inline-start: 3px solid var(--busy);
border-radius: var(--radius-md);
background: var(--surface);
box-shadow: var(--shadow-pop);
font-size: 13px;
pointer-events: auto;
animation: toast-in var(--duration-enter) ease-out;
}
.toast svg {
flex-shrink: 0;
}
.ok {
border-inline-start-color: var(--ok);
}
.ok svg {
color: var(--ok);
}
.error {
border-inline-start-color: var(--danger);
}
.error svg {
color: var(--danger);
}
.info svg {
color: var(--busy);
}
.text {
flex: 1;
min-width: 0;
overflow-wrap: anywhere;
}
.close {
width: 28px;
min-width: 28px;
height: 28px;
min-height: 28px;
padding: 0;
}
@keyframes toast-in {
from {
opacity: 0;
translate: 0 8px;
}
}
@media (prefers-reduced-motion: reduce) {
.toast {
animation: none;
}
}