feat(web): inline previews in chat and per-upload download limit choice

This commit is contained in:
justme committed 2026-10-17 13:44:16 +08:00
1 parent 1a4069576b
commit 96f92c2ba9
6 files changed
+245 -33

No files matched your search

@@ -0,0 +1,80 @@
.slot {
width: 360px;
max-width: 100%;
margin-top: var(--space-1);
}
.placeholder,
.poster {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
width: 100%;
min-height: 96px;
border: 1px solid var(--line-strong);
border-radius: var(--radius-md);
background: var(--surface-2);
color: var(--text-dim);
font: inherit;
font-size: 12px;
}
.poster {
cursor: pointer;
}
.picture {
display: block;
padding: 0;
border: 1px solid var(--line);
border-radius: var(--radius-md);
background: var(--surface-2);
cursor: zoom-in;
overflow: hidden;
}
.picture img {
display: block;
width: auto;
max-width: 100%;
height: auto;
max-height: 320px;
}
.video {
display: block;
width: 100%;
max-height: 320px;
border-radius: var(--radius-md);
background: var(--surface-2);
}
.audio {
width: 100%;
}
.snippet {
max-height: 220px;
margin: 0;
padding: var(--space-2) var(--space-3);
overflow: auto;
border: 1px solid var(--line);
border-radius: var(--radius-md);
background: var(--surface-2);
color: var(--text);
font-size: 12px;
white-space: pre-wrap;
overflow-wrap: anywhere;
cursor: pointer;
}
.archive {
max-height: 220px;
padding: var(--space-2) var(--space-3);
overflow: auto;
border: 1px solid var(--line);
border-radius: var(--radius-md);
background: var(--surface-2);
font-size: 12px;
}