@alexsun-top/opencode-chat-room 0.7.3 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +12 -5
- package/README.zh-CN.md +12 -5
- package/cli.ts +26 -6
- package/dist/cli.js +7804 -0
- package/package.json +19 -6
- package/plugin.ts +7 -4
- package/server/admin-auth.ts +1 -1
- package/server/admin-routes.ts +2 -2
- package/server/admin-state.ts +2 -1
- package/server/assets/FLUENT-ICONS-LICENSE +25 -0
- package/server/assets/NOTICE.txt +2 -1
- package/server/assets/attachments.css +1 -1
- package/server/assets/base.css +29 -7
- package/server/assets/chat/admin.js +43 -3
- package/server/assets/chat/announcements.js +5 -3
- package/server/assets/chat/confirm-dialog.js +12 -2
- package/server/assets/chat/create-room-dialog.js +5 -3
- package/server/assets/chat/events.js +32 -7
- package/server/assets/chat/files.js +369 -0
- package/server/assets/chat/history-loader.js +36 -26
- package/server/assets/chat/icons.js +15 -0
- package/server/assets/chat/index.js +7 -1
- package/server/assets/chat/locales/de.js +19 -2
- package/server/assets/chat/locales/es.js +19 -2
- package/server/assets/chat/locales/fr.js +19 -2
- package/server/assets/chat/locales/it.js +19 -2
- package/server/assets/chat/locales/ja.js +19 -2
- package/server/assets/chat/locales/ko.js +19 -2
- package/server/assets/chat/markdown.js +5 -33
- package/server/assets/chat/message-polling.js +61 -6
- package/server/assets/chat/message-window.js +28 -0
- package/server/assets/chat/messages.js +32 -12
- package/server/assets/chat/palette.js +396 -0
- package/server/assets/chat/pwa.js +67 -9
- package/server/assets/chat/recall.js +3 -2
- package/server/assets/chat/replies.js +2 -1
- package/server/assets/chat/rooms.js +20 -7
- package/server/assets/chat/search.js +137 -0
- package/server/assets/chat/settings.js +11 -5
- package/server/assets/chat/shortcuts.js +1 -1
- package/server/assets/chat/state.js +38 -4
- package/server/assets/code-highlight.css +0 -5
- package/server/assets/conversation.css +5 -4
- package/server/assets/edit-room.css +77 -0
- package/server/assets/files.css +222 -0
- package/server/assets/fluent-icons.svg +42 -0
- package/server/assets/icons.css +9 -0
- package/server/assets/palette.css +263 -0
- package/server/assets/recall.css +2 -2
- package/server/assets/responsive.css +6 -5
- package/server/assets/room-create.css +1 -1
- package/server/assets/settings.css +10 -7
- package/server/chat-server.ts +46 -29
- package/server/chat.html +175 -61
- package/server/http-server.ts +182 -0
- package/server/join-requests.ts +4 -4
- package/server/manifest.webmanifest +1 -1
- package/server/member-routes.ts +3 -3
- package/server/message-recall-routes.ts +1 -1
- package/server/newrooms.ts +4 -4
- package/server/resource-routes.ts +19 -4
- package/server/room-join.ts +1 -1
- package/server/room-payload.ts +1 -1
- package/server/sw.js +12 -1
- package/server/wake.ts +1 -1
- package/src/README.md +4 -2
- package/src/config/file-config.ts +294 -0
- package/src/rooms/resource-read.ts +2 -1
- package/src/rooms/resource-upload.ts +6 -3
- package/src/rooms/resources.ts +7 -2
- package/src/runtime/watch.ts +13 -8
- package/src/state/receiver-state.ts +3 -5
- package/src/state/sqlite-state.ts +11 -7
- package/src/state/sqlite.ts +80 -0
- package/src/state/store.ts +1 -0
- package/src/tui/app.mjs +417 -0
- package/src/tui/config.mjs +194 -0
- package/src/tui/http.mjs +103 -0
- package/src/tui/main.mjs +176 -0
- package/src/tui/messages.mjs +67 -0
- package/src/tui/palette-app.mjs +265 -0
- package/src/tui/palette.mjs +101 -0
- package/src/tui/session.mjs +40 -0
- package/src/tui/ui-content.mjs +426 -0
- package/src/tui/ui-theme.mjs +60 -0
- package/src/tui/ui-view.mjs +452 -0
- package/src/tui/ui.mjs +262 -0
- package/src/tests/announcement-board.ts +0 -186
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/* Room files: a compact file browser that stays inside the dialog. */
|
|
2
|
+
#btnFiles { display: flex; align-items: center; gap: 8px; }
|
|
3
|
+
#btnFiles svg {
|
|
4
|
+
width: 15px;
|
|
5
|
+
height: 15px;
|
|
6
|
+
flex: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
#filesDialog {
|
|
10
|
+
width: min(820px, calc(100vw - 24px));
|
|
11
|
+
max-width: none;
|
|
12
|
+
height: min(720px, calc(100dvh - 40px));
|
|
13
|
+
max-height: none;
|
|
14
|
+
margin: auto;
|
|
15
|
+
padding: 0;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
border-radius: 22px;
|
|
18
|
+
}
|
|
19
|
+
#filesDialog[open] { display: flex; flex-direction: column; animation: files-in .18s ease-out both; }
|
|
20
|
+
@keyframes files-in { from { opacity: 0; transform: translateY(8px); } }
|
|
21
|
+
#filesDialog::backdrop { background: rgb(9 22 18 / .52); backdrop-filter: blur(4px); }
|
|
22
|
+
|
|
23
|
+
.files-head {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex: none;
|
|
26
|
+
align-items: flex-start;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
gap: 12px;
|
|
29
|
+
padding: 18px 20px 12px;
|
|
30
|
+
}
|
|
31
|
+
.files-heading { min-width: 0; }
|
|
32
|
+
.files-eyebrow {
|
|
33
|
+
margin: 0 0 2px;
|
|
34
|
+
color: var(--accent);
|
|
35
|
+
font: 700 10px/1.3 var(--font-mono);
|
|
36
|
+
letter-spacing: .1em;
|
|
37
|
+
text-transform: uppercase;
|
|
38
|
+
}
|
|
39
|
+
.files-heading h2 {
|
|
40
|
+
margin: 0;
|
|
41
|
+
font-family: var(--font-display);
|
|
42
|
+
font-size: 23px;
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
letter-spacing: -.02em;
|
|
45
|
+
overflow-wrap: anywhere;
|
|
46
|
+
}
|
|
47
|
+
.files-room-name { color: var(--ink-3); font-weight: 500; }
|
|
48
|
+
.files-head-actions { display: flex; flex: none; align-items: center; gap: 4px; }
|
|
49
|
+
|
|
50
|
+
.files-toolbar {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex: none;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: space-between;
|
|
56
|
+
gap: 8px 12px;
|
|
57
|
+
padding: 0 20px 10px;
|
|
58
|
+
}
|
|
59
|
+
.files-filter { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
60
|
+
.files-filter-label { color: var(--ink-3); font-size: 11px; font-weight: 600; white-space: nowrap; }
|
|
61
|
+
.files-select {
|
|
62
|
+
min-width: 150px;
|
|
63
|
+
max-width: 250px;
|
|
64
|
+
min-height: 34px;
|
|
65
|
+
padding: 4px 28px 4px 9px;
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
}
|
|
68
|
+
.files-summary { margin: 0 0 0 auto; color: var(--ink-3); font-size: 11.5px; line-height: 1.4; }
|
|
69
|
+
|
|
70
|
+
.files-error { margin: 0 20px 8px; }
|
|
71
|
+
.files-scroll {
|
|
72
|
+
flex: 1 1 auto;
|
|
73
|
+
min-height: 0;
|
|
74
|
+
padding: 2px 20px 12px;
|
|
75
|
+
overflow-x: hidden;
|
|
76
|
+
overflow-y: auto;
|
|
77
|
+
overscroll-behavior: contain;
|
|
78
|
+
scrollbar-gutter: stable;
|
|
79
|
+
}
|
|
80
|
+
.file-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
|
|
81
|
+
|
|
82
|
+
.file-row {
|
|
83
|
+
display: grid;
|
|
84
|
+
grid-template-columns: 38px minmax(0, 1fr) auto;
|
|
85
|
+
align-items: center;
|
|
86
|
+
gap: 7px 10px;
|
|
87
|
+
min-width: 0;
|
|
88
|
+
padding: 8px 10px;
|
|
89
|
+
border: 1px solid var(--line);
|
|
90
|
+
border-radius: 12px;
|
|
91
|
+
background: var(--surface);
|
|
92
|
+
box-shadow: 0 1px 2px rgb(20 40 32 / .035);
|
|
93
|
+
animation: file-row-in .16s ease both;
|
|
94
|
+
animation-delay: calc(var(--file-i, 0) * 14ms);
|
|
95
|
+
}
|
|
96
|
+
.file-row.is-previewing { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 24%, var(--surface)); }
|
|
97
|
+
@keyframes file-row-in { from { opacity: 0; transform: translateY(3px); } }
|
|
98
|
+
|
|
99
|
+
.file-kind {
|
|
100
|
+
display: grid;
|
|
101
|
+
grid-row: 1;
|
|
102
|
+
place-items: center;
|
|
103
|
+
width: 38px;
|
|
104
|
+
height: 38px;
|
|
105
|
+
border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
|
|
106
|
+
border-radius: 9px;
|
|
107
|
+
color: var(--accent);
|
|
108
|
+
background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface));
|
|
109
|
+
}
|
|
110
|
+
.file-kind svg {
|
|
111
|
+
width: 18px;
|
|
112
|
+
height: 18px;
|
|
113
|
+
}
|
|
114
|
+
.file-kind[data-kind="audio"] { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, var(--surface)); }
|
|
115
|
+
.file-kind[data-kind="video"] { color: var(--mention-blue); background: color-mix(in srgb, var(--mention-blue) 12%, var(--surface)); }
|
|
116
|
+
|
|
117
|
+
.file-main { min-width: 0; }
|
|
118
|
+
.file-name {
|
|
119
|
+
margin: 0;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
color: var(--ink);
|
|
122
|
+
font-size: 13px;
|
|
123
|
+
font-weight: 600;
|
|
124
|
+
line-height: 1.4;
|
|
125
|
+
text-overflow: ellipsis;
|
|
126
|
+
white-space: nowrap;
|
|
127
|
+
}
|
|
128
|
+
.file-meta {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
flex-wrap: wrap;
|
|
132
|
+
gap: 2px 6px;
|
|
133
|
+
min-width: 0;
|
|
134
|
+
margin: 1px 0 0;
|
|
135
|
+
color: var(--ink-3);
|
|
136
|
+
font-size: 10.5px;
|
|
137
|
+
line-height: 1.5;
|
|
138
|
+
}
|
|
139
|
+
.file-uploader {
|
|
140
|
+
max-width: 30ch;
|
|
141
|
+
overflow: hidden;
|
|
142
|
+
color: var(--ink-2);
|
|
143
|
+
font-weight: 600;
|
|
144
|
+
text-overflow: ellipsis;
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
}
|
|
147
|
+
.file-date { white-space: nowrap; font-family: var(--font-mono); }
|
|
148
|
+
.file-size { white-space: nowrap; }
|
|
149
|
+
.file-dot { color: color-mix(in srgb, var(--ink-3) 70%, transparent); }
|
|
150
|
+
|
|
151
|
+
.file-actions { display: flex; align-items: center; gap: 3px; }
|
|
152
|
+
.file-action {
|
|
153
|
+
display: grid;
|
|
154
|
+
place-items: center;
|
|
155
|
+
width: 34px;
|
|
156
|
+
height: 34px;
|
|
157
|
+
padding: 0;
|
|
158
|
+
border: 1px solid transparent;
|
|
159
|
+
border-radius: 8px;
|
|
160
|
+
color: var(--ink-3);
|
|
161
|
+
background: transparent;
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
transition: color .12s, border-color .12s, background .12s;
|
|
164
|
+
}
|
|
165
|
+
.file-action svg {
|
|
166
|
+
width: 16px;
|
|
167
|
+
height: 16px;
|
|
168
|
+
}
|
|
169
|
+
.file-action:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 24%, transparent); background: var(--accent-soft); }
|
|
170
|
+
.file-action.file-action-delete:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, transparent); background: var(--danger-soft); }
|
|
171
|
+
.file-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
172
|
+
.file-action:disabled { opacity: .45; cursor: default; }
|
|
173
|
+
|
|
174
|
+
.file-preview {
|
|
175
|
+
grid-column: 2 / -1;
|
|
176
|
+
min-width: 0;
|
|
177
|
+
margin-top: 3px;
|
|
178
|
+
padding: 10px;
|
|
179
|
+
border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
|
|
180
|
+
border-radius: 10px;
|
|
181
|
+
color: var(--ink-3);
|
|
182
|
+
background: color-mix(in srgb, var(--surface-2) 58%, var(--surface));
|
|
183
|
+
font-size: 11.5px;
|
|
184
|
+
text-align: center;
|
|
185
|
+
}
|
|
186
|
+
.file-preview.is-error { color: var(--danger); }
|
|
187
|
+
.file-preview-media { display: block; margin: 0 auto; }
|
|
188
|
+
.file-preview-image { width: auto; max-width: 100%; max-height: min(46dvh, 420px); border-radius: 8px; object-fit: contain; }
|
|
189
|
+
.file-preview-audio { width: 100%; }
|
|
190
|
+
.file-preview-video { width: 100%; max-height: min(46dvh, 420px); border-radius: 8px; background: #0c1512; }
|
|
191
|
+
|
|
192
|
+
.files-empty { margin: 0; padding: 34px 12px 42px; color: var(--ink-3); font-size: 12.5px; text-align: center; }
|
|
193
|
+
.files-more { display: block; min-width: 130px; margin: 12px auto 2px; }
|
|
194
|
+
.files-foot {
|
|
195
|
+
flex: none;
|
|
196
|
+
padding: 9px 20px calc(12px + env(safe-area-inset-bottom));
|
|
197
|
+
border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
|
|
198
|
+
background: color-mix(in srgb, var(--surface) 84%, transparent);
|
|
199
|
+
}
|
|
200
|
+
.files-hint { margin: 0; color: var(--ink-3); font-size: 10.5px; }
|
|
201
|
+
|
|
202
|
+
@media (max-width: 620px) {
|
|
203
|
+
#filesDialog { width: calc(100vw - 12px); height: calc(100dvh - 16px); border-radius: 16px; }
|
|
204
|
+
.files-head { padding: 13px 13px 8px; }
|
|
205
|
+
.files-heading h2 { font-size: 19px; }
|
|
206
|
+
.files-toolbar { padding: 0 13px 8px; align-items: flex-start; }
|
|
207
|
+
.files-filter { flex-wrap: wrap; gap: 4px 8px; }
|
|
208
|
+
.files-select { min-width: 140px; max-width: calc(100vw - 60px); }
|
|
209
|
+
.files-summary { flex-basis: 100%; margin: 0; }
|
|
210
|
+
.files-error { margin: 0 13px 8px; }
|
|
211
|
+
.files-scroll { padding: 2px 8px 10px; scrollbar-gutter: auto; }
|
|
212
|
+
.file-row { grid-template-columns: 34px minmax(0, 1fr); padding: 8px; }
|
|
213
|
+
.file-kind { width: 34px; height: 34px; }
|
|
214
|
+
.file-actions { grid-column: 2; justify-content: flex-end; }
|
|
215
|
+
.file-preview { grid-column: 1 / -1; }
|
|
216
|
+
.file-uploader { max-width: 40vw; }
|
|
217
|
+
.files-foot { padding: 8px 13px calc(10px + env(safe-area-inset-bottom)); }
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@media (prefers-reduced-motion: reduce) {
|
|
221
|
+
#filesDialog[open], .file-row { animation: none; }
|
|
222
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<!-- Fluent System Icons, @fluentui/svg-icons 1.1.347 (MIT). See FLUENT-ICONS-LICENSE. -->
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<symbol id="fluent-add-24" viewBox="0 0 24 24"><path d="M12 3.25c.41 0 .75.34.75.75v7.25H20a.75.75 0 0 1 0 1.5h-7.25V20a.75.75 0 0 1-1.5 0v-7.25H4a.75.75 0 0 1 0-1.5h7.25V4c0-.41.34-.75.75-.75"/></symbol>
|
|
4
|
+
<symbol id="fluent-alert-24" viewBox="0 0 24 24"><path d="M12 2a7.5 7.5 0 0 1 7.5 7.25v4.35l1.38 3.15a1.25 1.25 0 0 1-1.15 1.75H15a3 3 0 0 1-6 .18v-.18H4.27a1.25 1.25 0 0 1-1.14-1.75L4.5 13.6V9.5C4.5 5.35 7.85 2 12 2m1.5 16.5h-3a1.5 1.5 0 0 0 3 .15zM12 3.5c-3.32 0-6 2.67-6 6v4.4L4.66 17h14.7L18 13.9V9.29a6 6 0 0 0-6-5.78"/></symbol>
|
|
5
|
+
<symbol id="fluent-arrow_down-24" viewBox="0 0 24 24"><path d="M19.8 13.27a.75.75 0 0 0-1.1-1.04l-5.95 6.25V3.75a.75.75 0 1 0-1.5 0v14.73L5.3 12.23a.75.75 0 1 0-1.1 1.04l7.08 7.42a1 1 0 0 0 1.44 0z"/></symbol>
|
|
6
|
+
<symbol id="fluent-arrow_download-24" viewBox="0 0 24 24"><path d="M18.25 20.5a.75.75 0 1 1 0 1.5h-13a.75.75 0 1 1 0-1.5zm-6.6-18.49h.1c.38 0 .7.28.74.64l.01.1v13.7l3.72-3.73a.75.75 0 0 1 .98-.07l.08.07c.27.27.3.68.07.98l-.07.08-5 5a.75.75 0 0 1-.97.07l-.09-.07-5-5a.75.75 0 0 1 .98-1.13l.08.07L11 16.43V2.76c0-.38.28-.7.65-.75h.1z"/></symbol>
|
|
7
|
+
<symbol id="fluent-arrow_exit-24" viewBox="0 0 24 24"><path d="M6.25 3A3.25 3.25 0 0 0 3 6.25v11.5C3 19.55 4.46 21 6.25 21h9a.75.75 0 0 0 0-1.5h-9c-.97 0-1.75-.78-1.75-1.75V6.25c0-.97.78-1.75 1.75-1.75h9a.75.75 0 0 0 0-1.5zm11.28 4.22a.75.75 0 1 0-1.06 1.06l2.97 2.97H8.75a.75.75 0 0 0 0 1.5h10.69l-2.97 2.97a.75.75 0 1 0 1.06 1.06l4.25-4.25c.3-.3.3-.77 0-1.06z"/></symbol>
|
|
8
|
+
<symbol id="fluent-arrow_reply-24" viewBox="0 0 24 24"><path d="M9.28 6.28a.75.75 0 0 0-1.06-1.06l-5 5c-.3.3-.3.77 0 1.06l5 5a.75.75 0 0 0 1.06-1.06L5.56 11.5h7.69c3.45 0 6.25 2.8 6.25 6.25v.5a.75.75 0 0 0 1.5 0v-.5A7.75 7.75 0 0 0 13.25 10H5.56z"/></symbol>
|
|
9
|
+
<symbol id="fluent-arrow_right-24" viewBox="0 0 24 24"><path d="M13.27 4.2a.75.75 0 0 0-1.04 1.1l6.25 5.95H3.75a.75.75 0 0 0 0 1.5h14.73l-6.25 5.95a.75.75 0 0 0 1.04 1.1l7.42-7.08a1 1 0 0 0 0-1.44z"/></symbol>
|
|
10
|
+
<symbol id="fluent-arrow_swap-24" viewBox="0 0 24 24"><path d="m14.78 2.22 4.5 4.5c.26.26.29.68.07.97l-.07.08-4.5 4.5a.75.75 0 0 1-1.13-.97l.07-.08L16.94 8H5.24a.75.75 0 0 1-.74-.65v-.1c0-.38.27-.7.64-.75h11.8l-3.22-3.22a.75.75 0 0 1-.07-.98l.07-.08a.75.75 0 0 1 .98-.07zl4.5 4.5zm4.72 14.43v.1c0 .38-.28.7-.64.74l-.1.01H7.06l3.22 3.22c.27.27.3.68.08.98l-.08.08a.75.75 0 0 1-.97.07l-.09-.07-4.5-4.5a.75.75 0 0 1-.07-.97l.07-.09 4.5-4.5a.75.75 0 0 1 1.14.98l-.08.08L7.07 16h11.69c.38 0 .7.28.74.65v.1z"/></symbol>
|
|
11
|
+
<symbol id="fluent-arrow_sync-24" viewBox="0 0 24 24"><path d="M16.25 5.18c-.25.33-.19.8.14 1.05a7.24 7.24 0 0 1-3.6 12.98l.68-.68a.75.75 0 0 0-.98-1.13l-.08.07-2 2a.75.75 0 0 0-.07.98l.07.08 2 2a.75.75 0 0 0 1.13-.98l-.07-.08-.75-.75A8.75 8.75 0 0 0 17.3 5.04a.75.75 0 0 0-1.05.14m-5.72-3.71c-.3.3-.3.77 0 1.06l.75.75a8.75 8.75 0 0 0-4.85 15.47.75.75 0 1 0 .96-1.16A7.23 7.23 0 0 1 11.2 4.8l-.68.68a.75.75 0 1 0 1.06 1.06l2-2c.3-.3.3-.77 0-1.06l-2-2a.75.75 0 0 0-1.06 0"/></symbol>
|
|
12
|
+
<symbol id="fluent-arrow_undo-24" viewBox="0 0 24 24"><path d="M4.75 2c.38 0 .7.28.74.65l.01.1v5.69l4.57-4.56a6.4 6.4 0 0 1 8.88-.18l.19.18a6.4 6.4 0 0 1 0 9.06l-8.85 8.84a.75.75 0 0 1-1.06-1.06l8.85-8.84a4.9 4.9 0 0 0-6.77-7.1l-.18.16L6.56 9.5h5.69c.38 0 .7.28.74.65l.01.1c0 .38-.28.7-.65.74l-.1.01h-7.5a.75.75 0 0 1-.74-.65l-.01-.1v-7.5c0-.41.34-.75.75-.75"/></symbol>
|
|
13
|
+
<symbol id="fluent-attach-24" viewBox="0 0 24 24"><path d="M11.77 3.74a6 6 0 0 1 8.66 8.3l-.19.2-8.8 8.8-.03.03a3.72 3.72 0 0 1-5.4-5.1l.05-.06.08-.09.14-.15 7.44-7.45c.27-.27.69-.29.98-.07l.08.07c.27.27.3.68.08.98l-.08.08-7.59 7.61a2.23 2.23 0 0 0 3.17 3.1l8.84-8.82A4.5 4.5 0 0 0 13 4.64l-.17.16-.01.02-9.54 9.53a.75.75 0 0 1-1.13-.97l.07-.09z"/></symbol>
|
|
14
|
+
<symbol id="fluent-checkmark-24" viewBox="0 0 24 24"><path d="M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5c.3.3.77.3 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94z"/></symbol>
|
|
15
|
+
<symbol id="fluent-chevron_down-24" viewBox="0 0 24 24"><path d="M4.22 8.47c.3-.3.77-.3 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25c-.3.3-.77.3-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06"/></symbol>
|
|
16
|
+
<symbol id="fluent-chevron_up-24" viewBox="0 0 24 24"><path d="M4.22 15.53c.3.3.77.3 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25c-.3.3-.3.77 0 1.06"/></symbol>
|
|
17
|
+
<symbol id="fluent-circle_half_fill-24" viewBox="0 0 24 24"><path d="M3.5 12a8.5 8.5 0 0 1 17 0zM12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20"/></symbol>
|
|
18
|
+
<symbol id="fluent-copy-24" viewBox="0 0 24 24"><path d="M8.5 8.5H5.25c-.97 0-1.75.78-1.75 1.75v8.5c0 .97.78 1.75 1.75 1.75h6c.97 0 1.75-.78 1.75-1.75V18h1.5v.75c0 1.8-1.46 3.25-3.25 3.25h-6A3.25 3.25 0 0 1 2 18.75v-8.5C2 8.45 3.46 7 5.25 7H8.5zM18.75 2C20.55 2 22 3.46 22 5.25v8.5c0 1.8-1.46 3.25-3.25 3.25h-6a3.25 3.25 0 0 1-3.25-3.25v-8.5C9.5 3.45 10.96 2 12.75 2zm-6 1.5c-.97 0-1.75.78-1.75 1.75v8.5c0 .97.78 1.75 1.75 1.75h6c.97 0 1.75-.78 1.75-1.75v-8.5c0-.97-.78-1.75-1.75-1.75z"/></symbol>
|
|
19
|
+
<symbol id="fluent-delete-24" viewBox="0 0 24 24"><path d="M10 5h4a2 2 0 1 0-4 0M8.5 5a3.5 3.5 0 1 1 7 0h5.75a.75.75 0 0 1 0 1.5h-1.32l-1.17 12.11A3.75 3.75 0 0 1 15.03 22H8.97a3.75 3.75 0 0 1-3.73-3.39L4.07 6.5H2.75a.75.75 0 0 1 0-1.5zm2 4.75a.75.75 0 0 0-1.5 0v7.5a.75.75 0 0 0 1.5 0zM14.25 9c.41 0 .75.34.75.75v7.5a.75.75 0 0 1-1.5 0v-7.5c0-.41.34-.75.75-.75m-7.52 9.47a2.25 2.25 0 0 0 2.24 2.03h6.06c1.15 0 2.12-.88 2.24-2.03L18.42 6.5H5.58z"/></symbol>
|
|
20
|
+
<symbol id="fluent-dismiss-24" viewBox="0 0 24 24"><path d="m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08z"/></symbol>
|
|
21
|
+
<symbol id="fluent-document-24" viewBox="0 0 24 24"><path d="M6 2a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42L13.6 2.6A2 2 0 0 0 12.17 2zm-.5 2c0-.28.22-.5.5-.5h6V8c0 1.1.9 2 2 2h4.5v10a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5zm11.88 4.5H14a.5.5 0 0 1-.5-.5V4.62z"/></symbol>
|
|
22
|
+
<symbol id="fluent-edit-24" viewBox="0 0 24 24"><path d="M20.95 3.05a3.6 3.6 0 0 0-5.06 0L3.94 15c-.4.4-.7.92-.82 1.48l-1.1 4.6a.75.75 0 0 0 .9.9l4.6-1.1A3 3 0 0 0 9 20.07L20.95 8.11a3.6 3.6 0 0 0 0-5.06m-4 1.06a2.08 2.08 0 1 1 2.94 2.94l-.89.89L16.06 5zM15 6.06 17.94 9l-10 10a1.6 1.6 0 0 1-.76.43l-3.42.8.82-3.4q.1-.45.42-.77z"/></symbol>
|
|
23
|
+
<symbol id="fluent-eye-24" viewBox="0 0 24 24"><path d="M12 9a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 1.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0-5a10 10 0 0 1 9.7 7.56.75.75 0 1 1-1.45.37 8.5 8.5 0 0 0-16.5 0 .75.75 0 0 1-1.45-.36A10 10 0 0 1 12 5.5"/></symbol>
|
|
24
|
+
<symbol id="fluent-folder-24" viewBox="0 0 24 24"><path d="M3.5 6.25V8h4.63q.31 0 .53-.22l1.53-1.53-1.53-1.53a.8.8 0 0 0-.53-.22H5.25c-.97 0-1.75.78-1.75 1.75m-1.5 0C2 4.45 3.46 3 5.25 3h2.88c.6 0 1.17.24 1.59.66l1.84 1.84h7.19c1.8 0 3.25 1.46 3.25 3.25v9c0 1.8-1.46 3.25-3.25 3.25H5.25A3.25 3.25 0 0 1 2 17.75zM3.5 9.5v8.25c0 .97.78 1.75 1.75 1.75h13.5c.97 0 1.75-.78 1.75-1.75v-9c0-.97-.78-1.75-1.75-1.75h-7.19L9.72 8.84c-.42.42-1 .66-1.6.66z"/></symbol>
|
|
25
|
+
<symbol id="fluent-image-24" viewBox="0 0 24 24"><path d="M17.75 3C19.55 3 21 4.46 21 6.25v11.5c0 1.8-1.46 3.25-3.25 3.25H6.25A3.25 3.25 0 0 1 3 17.75V6.25C3 4.45 4.46 3 6.25 3zm.58 16.4-5.8-5.69a.75.75 0 0 0-.97-.07l-.08.07-5.81 5.7q.28.09.58.09h11.5q.3 0 .58-.1l-5.8-5.69zm-.58-14.9H6.25c-.97 0-1.75.78-1.75 1.75v11.5q0 .3.1.6l5.83-5.7a2.25 2.25 0 0 1 3.02-.12l.12.11 5.83 5.7q.1-.27.1-.59V6.25c0-.97-.78-1.75-1.75-1.75m-2.5 2a2.25 2.25 0 1 1 0 4.5 2.25 2.25 0 0 1 0-4.5m0 1.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5"/></symbol>
|
|
26
|
+
<symbol id="fluent-key-24" viewBox="0 0 24 24"><path d="M18.25 7a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M15.5 2.05A6.55 6.55 0 0 0 9.06 9.7q.02.16-.07.25l-6.24 6.23c-.51.52-.8 1.22-.8 1.95v2.17c0 .97.78 1.75 1.75 1.75h2.5c.97 0 1.75-.78 1.75-1.75v-1.25H9.7c.69 0 1.25-.56 1.25-1.25v-1.75h1.75c.67 0 1.22-.54 1.25-1.2q.75.19 1.55.2a6.55 6.55 0 0 0 6.55-6.55 6.47 6.47 0 0 0-6.55-6.45M10.45 8.6a5.05 5.05 0 0 1 5.05-5.05c2.8 0 5.05 2.18 5.05 4.95a5.05 5.05 0 0 1-7.06 4.61.75.75 0 0 0-1.04.69v.75H10.7c-.7 0-1.25.56-1.25 1.25v1.75H7.7c-.7 0-1.25.56-1.25 1.25v1.5c0 .14-.11.25-.25.25H3.7a.25.25 0 0 1-.25-.25v-2.17q0-.51.37-.89l6.23-6.23c.42-.42.58-1 .49-1.57q-.1-.45-.1-.84"/></symbol>
|
|
27
|
+
<symbol id="fluent-local_language-24" viewBox="0 0 24 24"><path d="m9.34 6.37.05.1 5.56 14.5a.75.75 0 0 1-.42.98.73.73 0 0 1-.9-.33l-.05-.1-1.43-3.73h-7.1l-.08-.01-1.55 3.76a.73.73 0 0 1-.96.4.75.75 0 0 1-.43-.88l.03-.1 5.97-14.5a.73.73 0 0 1 1.31-.09M18.74 2c.39 0 .7.29.75.65V7.5h1.76c.38 0 .69.28.74.65v.1c0 .38-.28.7-.64.74l-.1.01H19.5v7.25c0 .38-.29.7-.65.74l-.1.01a.75.75 0 0 1-.75-.65V2.75c0-.41.33-.75.75-.75M8.82 8.75l-3.16 7.54h6.1zM10.75 2h5.5c.38 0 .69.29.74.65v3.1C17 8.1 15.1 10 12.76 10a.75.75 0 0 1 0-1.5 2.75 2.75 0 0 0 2.74-2.58V3.5h-4.74a.75.75 0 0 1-.1-1.49zh5.5z"/></symbol>
|
|
28
|
+
<symbol id="fluent-lock_closed-24" viewBox="0 0 24 24"><path d="M12 1a5 5 0 0 1 5 5v2.01c1.68.13 3 1.53 3 3.24v7.5c0 1.8-1.46 3.25-3.25 3.25h-9.5A3.25 3.25 0 0 1 4 18.75v-7.5a3.25 3.25 0 0 1 3-3.24V6a5 5 0 0 1 5-5M7.25 9.5c-.97 0-1.75.78-1.75 1.75v7.5c0 .97.78 1.75 1.75 1.75h9.5c.97 0 1.75-.78 1.75-1.75v-7.5c0-.97-.78-1.75-1.75-1.75zM12 13.75a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5M12 2.5A3.5 3.5 0 0 0 8.5 6v2h7V6A3.5 3.5 0 0 0 12 2.5"/></symbol>
|
|
29
|
+
<symbol id="fluent-megaphone-24" viewBox="0 0 24 24"><path d="M21.9 5.62q.1.32.1.64v11.48a2.25 2.25 0 0 1-2.9 2.16l-5.5-1.64A4 4 0 0 1 6 16.7V16l-2.4-.71A2.25 2.25 0 0 1 2 13.13v-2.26c0-1 .65-1.87 1.6-2.16l15.5-4.6c1.2-.36 2.45.32 2.8 1.51M7.5 16.44v.06a2.5 2.5 0 0 0 4.62 1.32zm12.04-10.9-15.5 4.61a.75.75 0 0 0-.54.72v2.26c0 .33.22.63.54.72l15.5 4.6a.75.75 0 0 0 .96-.71V6.26a.75.75 0 0 0-.96-.72"/></symbol>
|
|
30
|
+
<symbol id="fluent-more_horizontal-24" viewBox="0 0 24 24"><path d="M7.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0m6 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M18 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5"/></symbol>
|
|
31
|
+
<symbol id="fluent-music_note_2-24" viewBox="0 0 24 24"><path d="M19.7 2.15q.3.23.3.6V16.5a3.5 3.5 0 1 1-1.5-2.87V7.76L10 10.3v8.19a3.5 3.5 0 1 1-1.5-2.87V5.75c0-.33.22-.62.53-.72l10-3a.8.8 0 0 1 .67.12M10 8.75l8.5-2.56V3.76L10 6.3zM6.5 16.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0"/></symbol>
|
|
32
|
+
<symbol id="fluent-navigation-24" viewBox="0 0 24 24"><path d="M2.75 18h18.5a.75.75 0 0 1 .1 1.5H2.75a.75.75 0 0 1-.1-1.5zh18.5zm0-6.5h18.5a.75.75 0 0 1 .1 1.5H2.75a.75.75 0 0 1-.1-1.5zh18.5zm0-6.5h18.5a.75.75 0 0 1 .1 1.5H2.75a.75.75 0 0 1-.1-1.49zh18.5z"/></symbol>
|
|
33
|
+
<symbol id="fluent-options-24" viewBox="0 0 24 24"><path d="M8.75 14.5a3.25 3.25 0 0 1 3.16 2.5h9.34a.75.75 0 0 1 .1 1.5h-9.44a3.25 3.25 0 0 1-6.32 0H2.75a.75.75 0 0 1-.1-1.5h2.94a3.25 3.25 0 0 1 3.16-2.5m0 1.5a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5m6.5-13a3.25 3.25 0 0 1 3.16 2.5h2.84a.75.75 0 0 1 .1 1.5h-2.94a3.25 3.25 0 0 1-6.32 0H2.75a.75.75 0 0 1-.1-1.5h9.44A3.25 3.25 0 0 1 15.25 3m0 1.5a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5"/></symbol>
|
|
34
|
+
<symbol id="fluent-people-24" viewBox="0 0 24 24"><path d="M5.5 8a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0M8 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8m7.5 5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0M17 6a3 3 0 1 0 0 6 3 3 0 0 0 0-6m-2.75 13.04q1.04.44 2.75.46c2.28 0 3.59-.7 4.3-1.56a3 3 0 0 0 .7-1.73v-.03c0-1.2-.97-2.18-2.18-2.18H14.1q.6.63.81 1.5h4.91a.7.7 0 0 1 .68.7l-.04.18q-.05.25-.32.6C19.8 17.42 18.97 18 17 18c-.98 0-1.67-.15-2.17-.34q-.14.62-.58 1.38M4.25 14C3.01 14 2 15 2 16.25v.28l.01.2q.02.21.1.53c.09.42.29.98.68 1.55C3.61 19.97 5.17 21 8 21s4.39-1.03 5.2-2.2a4.5 4.5 0 0 0 .8-2.27v-.28c0-1.24-1-2.25-2.25-2.25zm-.75 2.5v-.25c0-.41.34-.75.75-.75h7.5c.41 0 .75.34.75.75v.34l-.06.33c-.07.28-.2.65-.46 1.02-.5.71-1.56 1.56-3.98 1.56s-3.49-.85-3.98-1.56a3 3 0 0 1-.52-1.43"/></symbol>
|
|
35
|
+
<symbol id="fluent-plug_connected-24" viewBox="0 0 24 24"><path d="M19.49 5.57a5.97 5.97 0 0 1-1.9 8.96c-.64.35-1.42.14-1.94-.38l-5.8-5.8c-.52-.52-.73-1.3-.38-1.95a6 6 0 0 1 8.96-1.89l2.29-2.29a.75.75 0 1 1 1.06 1.06zm-2.02 7.26a4.5 4.5 0 1 0-6.3-6.3c-.27.35-.19.83.12 1.14l5.04 5.04c.31.3.8.39 1.14.12M3.28 21.78l2.3-2.29a5.97 5.97 0 0 0 8.95-1.9c.35-.64.14-1.42-.38-1.94l-5.8-5.8c-.52-.52-1.3-.73-1.95-.38a6 6 0 0 0-1.89 8.96l-2.29 2.29a.75.75 0 1 0 1.06 1.06m4.39-10.49 5.04 5.04c.3.31.39.8.12 1.14a4.5 4.5 0 1 1-6.3-6.3c.35-.27.83-.19 1.14.12"/></symbol>
|
|
36
|
+
<symbol id="fluent-question_circle-24" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m0 1.67a8.34 8.34 0 0 0 0 16.66 8.34 8.34 0 0 0 0-16.66m0 11.83a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-8.75a2.75 2.75 0 0 1 2.75 2.75c0 1.01-.3 1.57-1.05 2.36l-.17.17c-.62.62-.78.89-.78 1.47a.75.75 0 0 1-1.5 0c0-1.01.3-1.57 1.05-2.36l.17-.17c.62-.62.78-.89.78-1.47a1.25 1.25 0 0 0-2.5-.13v.13a.75.75 0 0 1-1.5 0A2.75 2.75 0 0 1 12 6.75"/></symbol>
|
|
37
|
+
<symbol id="fluent-search-24" viewBox="0 0 24 24"><path d="M16.1 17.16a8 8 0 1 1 1.06-1.06l4.62 4.62a.75.75 0 1 1-1.06 1.06zM17.5 11a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0"/></symbol>
|
|
38
|
+
<symbol id="fluent-shield_checkmark-24" viewBox="0 0 24 24"><path d="M3 5.75c0-.41.34-.75.75-.75q3.99 0 7.8-2.85c.27-.2.63-.2.9 0Q16.26 5 20.25 5c.41 0 .75.34.75.75V11q0 .5-.04 1a7 7 0 0 0-1.46-.69V6.48a14.4 14.4 0 0 1-7.5-2.8 14.4 14.4 0 0 1-7.5 2.8V11c0 4.15 2.33 7.22 7.13 9.28q.4.84 1 1.52l-.36.15a.8.8 0 0 1-.54 0C5.96 19.68 3 16 3 11zM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-2.15-2.35a.5.5 0 0 0-.7 0l-3.65 3.64-1.65-1.64a.5.5 0 0 0-.7.7l2 2c.2.2.5.2.7 0l4-4a.5.5 0 0 0 0-.7"/></symbol>
|
|
39
|
+
<symbol id="fluent-subtract-24" viewBox="0 0 24 24"><path d="M3.75 12.5h16.5a.75.75 0 0 0 0-1.5H3.75a.75.75 0 0 0 0 1.5"/></symbol>
|
|
40
|
+
<symbol id="fluent-text_wrap-24" viewBox="0 0 24 24"><path d="M2.75 5a.75.75 0 0 0 0 1.5h18.5a.75.75 0 0 0 0-1.5zm0 6.5a.75.75 0 0 0 0 1.5H19a2.5 2.5 0 0 1 0 5h-4.44l.72-.72a.75.75 0 1 0-1.06-1.06l-2 2c-.3.3-.3.77 0 1.06l2 2a.75.75 0 1 0 1.06-1.06l-.72-.72H19a4 4 0 0 0 0-8zM2 18.75c0-.41.34-.75.75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75"/></symbol>
|
|
41
|
+
<symbol id="fluent-video-24" viewBox="0 0 24 24"><path d="M5.25 5A3.25 3.25 0 0 0 2 8.25v7.5C2 17.55 3.46 19 5.25 19h7.5c1.8 0 3.25-1.46 3.25-3.25v-.31l3.26 2.25c1.16.8 2.74-.03 2.74-1.44v-8.5a1.75 1.75 0 0 0-2.74-1.44L16 8.56v-.31C16 6.45 14.54 5 12.75 5zM16 10.38l4.11-2.83c.17-.12.4 0 .4.2v8.5c0 .2-.23.32-.4.2L16 13.62zM3.5 8.25c0-.97.78-1.75 1.75-1.75h7.5c.97 0 1.75.78 1.75 1.75v7.5c0 .97-.78 1.75-1.75 1.75h-7.5c-.97 0-1.75-.78-1.75-1.75z"/></symbol>
|
|
42
|
+
</svg>
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
/* Alt+Space palette: one search-and-command surface over the chat. */
|
|
2
|
+
#paletteDialog {
|
|
3
|
+
width: min(680px, calc(100vw - 24px));
|
|
4
|
+
max-width: none;
|
|
5
|
+
max-height: min(780px, calc(100dvh - 40px));
|
|
6
|
+
margin: auto;
|
|
7
|
+
padding: 0;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
border-radius: 22px;
|
|
10
|
+
color: var(--ink);
|
|
11
|
+
background:
|
|
12
|
+
linear-gradient(150deg, color-mix(in srgb, var(--accent-soft) 24%, var(--surface)), var(--surface) 34%),
|
|
13
|
+
var(--surface);
|
|
14
|
+
border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
|
|
15
|
+
box-shadow: 0 30px 90px rgb(10 25 20 / .28);
|
|
16
|
+
}
|
|
17
|
+
#paletteDialog[open] { display: flex; flex-direction: column; animation: palette-in .18s cubic-bezier(.2, .8, .2, 1) both; }
|
|
18
|
+
#paletteDialog::backdrop { background: rgb(9 22 18 / .5); backdrop-filter: blur(5px); }
|
|
19
|
+
@keyframes palette-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
|
|
20
|
+
|
|
21
|
+
.palette-head { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
|
|
22
|
+
.palette-heading { min-width: 0; }
|
|
23
|
+
.palette-eyebrow {
|
|
24
|
+
margin: 0 0 2px;
|
|
25
|
+
color: var(--accent);
|
|
26
|
+
font: 700 10.5px/1.3 var(--font-mono);
|
|
27
|
+
letter-spacing: .1em;
|
|
28
|
+
text-transform: uppercase;
|
|
29
|
+
}
|
|
30
|
+
.palette-heading h2 {
|
|
31
|
+
margin: 0;
|
|
32
|
+
font-family: var(--font-display);
|
|
33
|
+
font-size: 24px;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
letter-spacing: -.025em;
|
|
36
|
+
overflow-wrap: anywhere;
|
|
37
|
+
}
|
|
38
|
+
.palette-head-actions { display: flex; flex: none; align-items: center; gap: 6px; }
|
|
39
|
+
|
|
40
|
+
.palette-scope {
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 6px;
|
|
44
|
+
padding: 5px 8px 5px 10px;
|
|
45
|
+
font-size: 11.5px;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
transition: color .12s, border-color .12s, background .12s;
|
|
48
|
+
}
|
|
49
|
+
.palette-scope svg {
|
|
50
|
+
width: 14px;
|
|
51
|
+
height: 14px;
|
|
52
|
+
}
|
|
53
|
+
.palette-scope .keys-key { min-width: 18px; height: 18px; padding: 0 4px; font-size: 9.5px; }
|
|
54
|
+
.palette-scope[data-scope="all"] {
|
|
55
|
+
color: var(--accent);
|
|
56
|
+
border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
|
|
57
|
+
background: var(--accent-soft);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.palette-search {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex: none;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: 10px;
|
|
65
|
+
margin: 0 20px;
|
|
66
|
+
padding: 0 12px;
|
|
67
|
+
border: 1px solid var(--line);
|
|
68
|
+
border-radius: 14px;
|
|
69
|
+
background: var(--surface);
|
|
70
|
+
box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 55%, transparent) inset;
|
|
71
|
+
transition: border-color .14s, box-shadow .14s;
|
|
72
|
+
}
|
|
73
|
+
.palette-search:focus-within {
|
|
74
|
+
border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
|
|
75
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
|
|
76
|
+
}
|
|
77
|
+
.palette-search > svg {
|
|
78
|
+
flex: none;
|
|
79
|
+
width: 17px;
|
|
80
|
+
height: 17px;
|
|
81
|
+
color: var(--ink-3);
|
|
82
|
+
}
|
|
83
|
+
.palette-input, .palette-input:focus {
|
|
84
|
+
flex: 1 1 auto;
|
|
85
|
+
min-width: 0;
|
|
86
|
+
padding: 12px 0;
|
|
87
|
+
border: 0;
|
|
88
|
+
outline: 0;
|
|
89
|
+
background: transparent;
|
|
90
|
+
box-shadow: none;
|
|
91
|
+
color: var(--ink);
|
|
92
|
+
font-size: 15px;
|
|
93
|
+
}
|
|
94
|
+
.palette-mode {
|
|
95
|
+
flex: none;
|
|
96
|
+
padding: 2px 7px;
|
|
97
|
+
border: 1px solid transparent;
|
|
98
|
+
border-radius: 999px;
|
|
99
|
+
color: var(--ink-3);
|
|
100
|
+
background: var(--surface-2);
|
|
101
|
+
font: 600 9.5px/1.7 var(--font-mono);
|
|
102
|
+
letter-spacing: .04em;
|
|
103
|
+
text-transform: uppercase;
|
|
104
|
+
}
|
|
105
|
+
#paletteDialog[data-mode="commands"] .palette-mode { color: var(--accent); background: var(--accent-soft); }
|
|
106
|
+
|
|
107
|
+
.palette-status { flex: none; min-height: 1.2em; margin: 8px 22px 4px; color: var(--ink-3); font-size: 11.5px; line-height: 1.4; }
|
|
108
|
+
|
|
109
|
+
.palette-list {
|
|
110
|
+
flex: 1 1 auto;
|
|
111
|
+
min-height: 0;
|
|
112
|
+
margin: 4px 0 0;
|
|
113
|
+
padding: 4px 10px 10px;
|
|
114
|
+
overflow-x: hidden;
|
|
115
|
+
overflow-y: auto;
|
|
116
|
+
overscroll-behavior: contain;
|
|
117
|
+
scrollbar-gutter: stable;
|
|
118
|
+
list-style: none;
|
|
119
|
+
}
|
|
120
|
+
.palette-row {
|
|
121
|
+
position: relative;
|
|
122
|
+
display: grid;
|
|
123
|
+
gap: 3px;
|
|
124
|
+
min-width: 0;
|
|
125
|
+
padding: 9px 11px;
|
|
126
|
+
border: 1px solid transparent;
|
|
127
|
+
border-radius: 11px;
|
|
128
|
+
overflow-wrap: anywhere;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
animation: palette-row-in .16s ease both;
|
|
131
|
+
animation-delay: calc(var(--palette-i, 0) * 18ms);
|
|
132
|
+
}
|
|
133
|
+
.palette-row + .palette-row { margin-top: 2px; }
|
|
134
|
+
.palette-row[aria-selected="true"] {
|
|
135
|
+
border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
|
|
136
|
+
background: color-mix(in srgb, var(--accent-soft) 74%, var(--surface));
|
|
137
|
+
}
|
|
138
|
+
.palette-row[aria-selected="true"]::before {
|
|
139
|
+
content: "";
|
|
140
|
+
position: absolute;
|
|
141
|
+
top: 8px;
|
|
142
|
+
bottom: 8px;
|
|
143
|
+
left: -1px;
|
|
144
|
+
width: 2px;
|
|
145
|
+
border-radius: 2px;
|
|
146
|
+
background: var(--accent);
|
|
147
|
+
}
|
|
148
|
+
@keyframes palette-row-in { from { opacity: 0; transform: translateY(3px); } }
|
|
149
|
+
|
|
150
|
+
.palette-result-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
|
|
151
|
+
.palette-room {
|
|
152
|
+
max-width: 42%;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
color: var(--ink);
|
|
155
|
+
font-size: 12px;
|
|
156
|
+
font-weight: 700;
|
|
157
|
+
text-overflow: ellipsis;
|
|
158
|
+
white-space: nowrap;
|
|
159
|
+
}
|
|
160
|
+
.palette-sender {
|
|
161
|
+
min-width: 0;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
color: var(--accent);
|
|
164
|
+
font-size: 11.5px;
|
|
165
|
+
font-weight: 600;
|
|
166
|
+
text-overflow: ellipsis;
|
|
167
|
+
white-space: nowrap;
|
|
168
|
+
}
|
|
169
|
+
.palette-time {
|
|
170
|
+
flex: none;
|
|
171
|
+
margin-left: auto;
|
|
172
|
+
color: var(--ink-3);
|
|
173
|
+
font: 500 10.5px/1.4 var(--font-mono);
|
|
174
|
+
white-space: nowrap;
|
|
175
|
+
}
|
|
176
|
+
.palette-snippet {
|
|
177
|
+
display: -webkit-box;
|
|
178
|
+
overflow: hidden;
|
|
179
|
+
color: var(--ink-2);
|
|
180
|
+
font-size: 12.5px;
|
|
181
|
+
line-height: 1.55;
|
|
182
|
+
-webkit-box-orient: vertical;
|
|
183
|
+
-webkit-line-clamp: 2;
|
|
184
|
+
}
|
|
185
|
+
.palette-snippet mark {
|
|
186
|
+
padding: 0 1px;
|
|
187
|
+
border-radius: 3px;
|
|
188
|
+
color: var(--accent-ink);
|
|
189
|
+
background: color-mix(in srgb, var(--accent) 82%, transparent);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.palette-command { display: flex; align-items: center; gap: 10px; padding: 8px 11px; }
|
|
193
|
+
.palette-icon {
|
|
194
|
+
display: grid;
|
|
195
|
+
flex: none;
|
|
196
|
+
place-items: center;
|
|
197
|
+
width: 26px;
|
|
198
|
+
height: 26px;
|
|
199
|
+
border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
|
|
200
|
+
border-radius: 8px;
|
|
201
|
+
color: var(--accent);
|
|
202
|
+
background: color-mix(in srgb, var(--accent-soft) 80%, var(--surface));
|
|
203
|
+
}
|
|
204
|
+
.palette-icon svg {
|
|
205
|
+
width: 14px;
|
|
206
|
+
height: 14px;
|
|
207
|
+
}
|
|
208
|
+
.palette-label { min-width: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
|
|
209
|
+
.palette-enter {
|
|
210
|
+
margin-left: auto;
|
|
211
|
+
padding: 0 5px;
|
|
212
|
+
border: 1px solid color-mix(in srgb, var(--line) 88%, var(--ink-3));
|
|
213
|
+
border-bottom-width: 2px;
|
|
214
|
+
border-radius: 6px;
|
|
215
|
+
color: var(--ink-3);
|
|
216
|
+
background: var(--surface);
|
|
217
|
+
font: 600 10px/18px var(--font-mono);
|
|
218
|
+
}
|
|
219
|
+
.palette-empty { padding: 26px 14px 30px; color: var(--ink-3); font-size: 12.5px; text-align: center; }
|
|
220
|
+
|
|
221
|
+
.palette-foot {
|
|
222
|
+
display: flex;
|
|
223
|
+
flex: none;
|
|
224
|
+
align-items: center;
|
|
225
|
+
justify-content: space-between;
|
|
226
|
+
gap: 10px;
|
|
227
|
+
padding: 9px 20px calc(12px + env(safe-area-inset-bottom));
|
|
228
|
+
border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
|
|
229
|
+
background: color-mix(in srgb, var(--surface) 82%, transparent);
|
|
230
|
+
}
|
|
231
|
+
.palette-hint { margin: 0; color: var(--ink-3); font-size: 10.5px; }
|
|
232
|
+
|
|
233
|
+
/* The opened message keeps a quiet outline after the palette has gone. */
|
|
234
|
+
#msgList [data-msg-id].palette-hit {
|
|
235
|
+
border-radius: 12px;
|
|
236
|
+
outline: 2px solid color-mix(in srgb, var(--accent) 78%, transparent);
|
|
237
|
+
outline-offset: 3px;
|
|
238
|
+
background: color-mix(in srgb, var(--accent-soft) 46%, transparent);
|
|
239
|
+
animation: palette-hit 1.2s ease-out 2;
|
|
240
|
+
}
|
|
241
|
+
@keyframes palette-hit {
|
|
242
|
+
from { background: color-mix(in srgb, var(--accent) 24%, transparent); }
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@media (max-width: 560px) {
|
|
246
|
+
#paletteDialog { width: calc(100vw - 12px); max-height: calc(100dvh - 16px); border-radius: 16px; }
|
|
247
|
+
.palette-head { padding: 13px 13px 8px; }
|
|
248
|
+
.palette-eyebrow { font-size: 9.5px; }
|
|
249
|
+
.palette-heading h2 { font-size: 20px; }
|
|
250
|
+
.palette-scope { padding: 4px 6px 4px 8px; font-size: 10.5px; }
|
|
251
|
+
.palette-scope .keys-key { display: none; }
|
|
252
|
+
.palette-search { margin: 0 12px; }
|
|
253
|
+
.palette-status { margin: 7px 14px 2px; }
|
|
254
|
+
.palette-list { padding: 4px 6px 8px; scrollbar-gutter: auto; }
|
|
255
|
+
.palette-row { padding: 9px; }
|
|
256
|
+
.palette-room { max-width: 50%; }
|
|
257
|
+
.palette-foot { padding: 8px 13px calc(10px + env(safe-area-inset-bottom)); }
|
|
258
|
+
.palette-hint { font-size: 10px; }
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@media (prefers-reduced-motion: reduce) {
|
|
262
|
+
#paletteDialog[open], .palette-row, #msgList [data-msg-id].palette-hit { animation: none; }
|
|
263
|
+
}
|
package/server/assets/recall.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* Recall: the row-level action, the tombstone, and the reveal disclosure. */
|
|
2
2
|
.message-recall { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 8px; color: var(--ink-3); background: transparent; cursor: pointer; }
|
|
3
|
-
.message-recall-icon { display: block; width: 16px; height: 16px;
|
|
3
|
+
.message-recall-icon { display: block; width: 16px; height: 16px; }
|
|
4
4
|
.message-recall:hover, .message-recall:focus-visible { border-color: color-mix(in srgb, var(--danger) 32%, var(--line)); color: var(--danger); background: var(--danger-soft); }
|
|
5
5
|
.message-recall:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
6
6
|
.msg-text.recalled { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; border-style: dashed; border-color: color-mix(in srgb, var(--ink) 18%, transparent); background: color-mix(in srgb, var(--surface-2) 62%, var(--surface)); box-shadow: none; color: var(--ink-2); font-size: 14.5px; }
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.msg-text.recalled > :not(:first-child) { margin-top: 0; }
|
|
9
9
|
.recalled-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink-2); font-weight: 550; }
|
|
10
10
|
.recalled-mark { display: inline-flex; color: var(--ink-3); }
|
|
11
|
-
.recalled-icon { display: block; width: 15px; height: 15px;
|
|
11
|
+
.recalled-icon { display: block; width: 15px; height: 15px; }
|
|
12
12
|
.recalled-by { margin: 0; color: var(--ink-3); font-size: 12px; }
|
|
13
13
|
.recalled-reveal { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); background: var(--surface); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
|
|
14
14
|
.recalled-reveal:hover, .recalled-reveal:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
.rail-tools { display: flex; align-items: center; gap: 7px; }
|
|
56
56
|
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink-2); font: inherit; font-size: 20px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
|
|
57
57
|
.icon-btn:hover { color: var(--accent); border-color: var(--line); background: var(--surface); }
|
|
58
|
-
.icon-btn svg { width: 17px; height: 17px;
|
|
58
|
+
.icon-btn svg { width: 17px; height: 17px; }
|
|
59
59
|
.rail-composer { position: absolute; top: 76px; left: 12px; right: 12px; z-index: 25; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
|
|
60
60
|
.rail-composer .field { margin-bottom: 8px; }
|
|
61
61
|
.rail-composer .btn { width: 100%; }
|
|
@@ -129,10 +129,11 @@
|
|
|
129
129
|
.user-menu-trigger:focus-visible, .menu-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
130
130
|
.user-menu-trigger #railIdentity { flex: 1; min-width: 0; overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
|
|
131
131
|
.user-menu-trigger .rail-avatar { flex: none; width: 34px; height: 34px; border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--line)); font-size: 13px; font-weight: 700; }
|
|
132
|
-
.user-menu-caret {
|
|
132
|
+
.user-menu-caret { width: 14px; height: 14px; }
|
|
133
133
|
.user-menu-panel { top: auto; right: auto; bottom: calc(100% + 8px); left: 0; max-height: min(65dvh, 560px); overflow: auto; }
|
|
134
|
-
.room-options-panel { display: grid; gap: 4px; width: 190px; }
|
|
135
|
-
.menu-action { width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
|
|
134
|
+
.room-options-panel { display: grid; gap: 4px; width: 190px; max-height: min(70dvh, 420px); overflow: auto; }
|
|
135
|
+
.menu-action { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
|
|
136
|
+
.menu-action > svg { flex: none; width: 16px; height: 16px; }
|
|
136
137
|
.menu-action:hover { background: var(--surface-2); }
|
|
137
138
|
/* A non-owner still sees the entry; it reads as secondary and explains itself. */
|
|
138
139
|
.menu-action.menu-secondary { color: var(--ink-3); }
|
|
@@ -225,7 +226,7 @@
|
|
|
225
226
|
.rail-foot { display: flex; min-height: var(--composer-block, 93px); }
|
|
226
227
|
.rail-install { display: grid; gap: 6px; padding: 8px 4px 10px; border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
|
|
227
228
|
.rail-install .rail-install-btn { width: 100%; min-height: 40px; }
|
|
228
|
-
.rail-install svg { width: 16px; height: 16px;
|
|
229
|
+
.rail-install svg { width: 16px; height: 16px; }
|
|
229
230
|
.rail-install .hint { margin: 0; font-size: 11.5px; line-height: 1.45; }
|
|
230
231
|
.rail-label { margin: 0 8px 10px; font-size: 11px; }
|
|
231
232
|
.rail-composer { top: 32px; left: 12px; right: 12px; }
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 80%, #18382f), var(--accent));
|
|
37
37
|
box-shadow: 0 3px 9px color-mix(in srgb, var(--accent) 22%, transparent);
|
|
38
38
|
}
|
|
39
|
-
.create-room-mark svg { width: 18px; height: 18px;
|
|
39
|
+
.create-room-mark svg { width: 18px; height: 18px; }
|
|
40
40
|
.create-room-eyebrow { margin: 2px 0 0; color: var(--ink-3); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
|
|
41
41
|
.create-room-heading h2 { margin: 0; font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -.02em; line-height: 1.16; }
|
|
42
42
|
.create-room-head .reader-close { margin: -6px -6px 0 0; }
|