@alexsun-top/opencode-chat-room 0.8.0 → 0.8.2
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 +52 -0
- package/LICENSE +2 -2
- package/README.md +40 -8
- package/README.zh-CN.md +40 -8
- package/cli.ts +27 -1
- package/dist/cli.js +5406 -3088
- package/package.json +25 -5
- package/packages/chat-room-channeld/README.md +111 -33
- package/packages/chat-room-channeld/src/adapter.ts +179 -7
- package/packages/chat-room-channeld/src/config.ts +63 -1
- package/packages/chat-room-channeld/src/delivery.ts +6 -1
- package/packages/chat-room-channeld/src/host-helpers.ts +11 -0
- package/packages/chat-room-channeld/src/host.ts +142 -9
- package/packages/chat-room-channeld/src/inbound.ts +35 -0
- package/packages/chat-room-channeld/src/protocol.ts +52 -1
- package/packages/chat-room-channeld/src/rules.ts +7 -2
- package/packages/chat-room-channeld/src/state.ts +17 -0
- package/packages/chat-room-channeld/src/stats.ts +43 -1
- package/plugin.ts +1 -1
- package/server/admin-state.ts +13 -13
- package/server/app.ts +95 -0
- package/server/assets/NOTICE.txt +2 -1
- package/server/assets/base.css +21 -9
- package/server/assets/chat/admin.js +0 -2
- package/server/assets/chat/announcements.js +69 -8
- package/server/assets/chat/chat-background.js +177 -0
- package/server/assets/chat/confirm-dialog.js +0 -1
- package/server/assets/chat/create-room-dialog.js +0 -1
- package/server/assets/chat/diagram-viewer.js +7 -1
- package/server/assets/chat/doc-preview.js +251 -46
- package/server/assets/chat/events.js +16 -5
- package/server/assets/chat/files.js +53 -7
- package/server/assets/chat/image-zoom.js +8 -1
- package/server/assets/chat/index.js +6 -2
- package/server/assets/chat/integration-account-schema.js +99 -0
- package/server/assets/chat/integration-editor.js +163 -0
- package/server/assets/chat/integration-values.js +124 -0
- package/server/assets/chat/integrations.js +648 -0
- package/server/assets/chat/locales/de.js +40 -4
- package/server/assets/chat/locales/es.js +40 -4
- package/server/assets/chat/locales/fr.js +40 -4
- package/server/assets/chat/locales/it.js +40 -4
- package/server/assets/chat/locales/ja.js +40 -4
- package/server/assets/chat/locales/ko.js +40 -4
- package/server/assets/chat/markdown-footnotes.js +1 -1
- package/server/assets/chat/markdown.js +45 -8
- package/server/assets/chat/messages.js +6 -5
- package/server/assets/chat/office-preview.js +69 -0
- package/server/assets/chat/palette.js +6 -1
- package/server/assets/chat/panels.js +56 -0
- package/server/assets/chat/recall.js +58 -7
- package/server/assets/chat/receipts.js +17 -6
- package/server/assets/chat/reminders.js +68 -9
- package/server/assets/chat/replies.js +0 -6
- package/server/assets/chat/resource-format.js +11 -0
- package/server/assets/chat/rooms.js +1 -6
- package/server/assets/chat/settings.js +98 -4
- package/server/assets/chat/shortcuts.js +0 -3
- package/server/assets/chat/side-pane.js +34 -10
- package/server/assets/chat/state.js +125 -12
- package/server/assets/chat/system-events.js +58 -0
- package/server/assets/chat/system-messages.js +32 -14
- package/server/assets/chat/task-row.js +0 -6
- package/server/assets/chat/tasks.js +119 -37
- package/server/assets/chat/window-controls.js +37 -0
- package/server/assets/code-highlight.css +71 -32
- package/server/assets/conversation.css +174 -31
- package/server/assets/doc-preview.css +40 -3
- package/server/assets/files.css +8 -0
- package/server/assets/fluent-icons.svg +2 -0
- package/server/assets/monaco/LICENSE +21 -0
- package/server/assets/monaco/ThirdPartyNotices.txt +448 -0
- package/server/assets/monaco/codicon-jdswhhtn.ttf +0 -0
- package/server/assets/monaco/editor.worker.js +45 -0
- package/server/assets/monaco/integration-rules.css +1 -0
- package/server/assets/monaco/integration-rules.js +1605 -0
- package/server/assets/monaco/json.worker.js +77 -0
- package/server/assets/office/THIRD-PARTY-NOTICES.txt +11 -0
- package/server/assets/office/docx.bundle.js +33 -0
- package/server/assets/office/licenses/docx-preview-LICENSE.txt +201 -0
- package/server/assets/office/licenses/echarts-LICENSE.txt +222 -0
- package/server/assets/office/licenses/jszip-LICENSE.txt +651 -0
- package/server/assets/office/licenses/lodash-LICENSE.txt +47 -0
- package/server/assets/office/licenses/pptx-preview-LICENSE.txt +8 -0
- package/server/assets/office/licenses/tslib-LICENSE.txt +12 -0
- package/server/assets/office/licenses/uuid-LICENSE.txt +9 -0
- package/server/assets/office/licenses/xlsx-LICENSE.txt +201 -0
- package/server/assets/office/licenses/zrender-LICENSE.txt +29 -0
- package/server/assets/office/pptx.bundle.js +104 -0
- package/server/assets/office/xlsx.bundle.js +141 -0
- package/server/assets/recall.css +5 -4
- package/server/assets/responsive.css +80 -11
- package/server/assets/settings.css +185 -9
- package/server/assets/tasks.css +57 -7
- package/server/assets/window-controls.css +36 -0
- package/server/channel-attachments.ts +133 -0
- package/server/channel-integration.ts +572 -0
- package/server/channel-settings.ts +77 -0
- package/server/channels.ts +274 -21
- package/server/chat-server.ts +32 -580
- package/server/chat.html +234 -34
- package/server/http-server.ts +3 -182
- package/server/manifest.webmanifest +1 -0
- package/server/resource-routes.ts +16 -16
- package/server/routes/inbox.ts +100 -0
- package/server/routes/pages.ts +83 -0
- package/server/routes/questions.ts +39 -0
- package/server/routes/room-actions.ts +162 -0
- package/server/routes/rooms.ts +160 -0
- package/server/startup.ts +84 -0
- package/server/sw.js +5 -0
- package/server/task-routes.ts +1 -1
- package/src/center/center-client.ts +3 -11
- package/src/config/file-config.ts +7 -54
- package/src/platform/http-server.ts +182 -0
- package/src/protocol/addressing.ts +21 -0
- package/src/protocol/config.ts +58 -0
- package/src/protocol/room.ts +51 -0
- package/src/rooms/resources.ts +26 -16
- package/src/rooms/room-service.ts +2 -48
- package/src/rooms/storage.ts +329 -0
- package/src/rooms/tasks.ts +21 -5
- package/src/runtime/watch.ts +1 -1
- package/src/state/pg-database.ts +183 -0
- package/src/state/pg-migrate.ts +175 -0
- package/src/state/pg-sql.mjs +175 -0
- package/src/state/pg-worker.mjs +133 -0
- package/src/state/sqlite-announcements.ts +25 -0
- package/src/state/sqlite-database.ts +130 -0
- package/src/state/sqlite-legacy.ts +90 -0
- package/src/state/sqlite-members.ts +155 -0
- package/src/state/sqlite-messages.ts +288 -0
- package/src/state/sqlite-resources.ts +39 -0
- package/src/state/sqlite-rooms.ts +194 -0
- package/src/state/sqlite-schema.ts +80 -0
- package/src/state/sqlite-state-store.ts +34 -0
- package/src/state/sqlite-state.ts +15 -897
- package/src/state/sqlite-tasks.ts +65 -0
- package/src/state/sqlite-transaction.ts +13 -0
- package/src/state/sqlite.ts +21 -1
- package/src/state/store.ts +5 -1
- package/src/tui/app.mjs +32 -19
- package/src/tui/config.mjs +12 -4
- package/src/tui/i18n.mjs +38 -0
- package/src/tui/info-app.mjs +50 -51
- package/src/tui/info-content.mjs +79 -44
- package/src/tui/join-app.mjs +9 -9
- package/src/tui/locales/en.mjs +349 -0
- package/src/tui/locales/zh-CN.mjs +349 -0
- package/src/tui/main.mjs +85 -37
- package/src/tui/markdown.mjs +3 -2
- package/src/tui/mentions.mjs +3 -1
- package/src/tui/message-app.mjs +22 -21
- package/src/tui/message-view.mjs +2 -1
- package/src/tui/palette-app.mjs +9 -8
- package/src/tui/palette.mjs +30 -24
- package/src/tui/prefs.mjs +92 -0
- package/src/tui/reminder-app.mjs +18 -17
- package/src/tui/room-settings-app.mjs +30 -28
- package/src/tui/settings-app.mjs +153 -0
- package/src/tui/ui-content.mjs +65 -86
- package/src/tui/ui-help.mjs +73 -0
- package/src/tui/ui-overlay-view.mjs +23 -7
- package/src/tui/ui-suggest.mjs +6 -5
- package/src/tui/ui-theme.mjs +37 -33
- package/src/tui/ui-view.mjs +22 -7
- package/src/tui/ui.mjs +15 -3
- package/src/web/editor.worker.ts +1 -0
- package/src/web/integration-rules-editor.ts +573 -0
- package/src/web/integration-rules.ts +26 -0
- package/src/web/integration-schema.ts +229 -0
- package/src/web/json.worker.ts +1 -0
- package/src/web/office-viewer.ts +221 -0
- package/packages/chat-room-channeld/dist/feishu-adapter.js +0 -499
- package/packages/chat-room-channeld/src/feishu-adapter.ts +0 -473
- package/server/assets/chat/forward.js +0 -69
package/server/assets/recall.css
CHANGED
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
.recalled-mark { display: inline-flex; color: var(--ink-3); }
|
|
11
11
|
.recalled-icon { display: block; width: 15px; height: 15px; }
|
|
12
12
|
.recalled-by { margin: 0; color: var(--ink-3); font-size: 12px; }
|
|
13
|
-
.recalled-
|
|
14
|
-
.recalled-reveal
|
|
15
|
-
.recalled-reveal:focus-visible {
|
|
16
|
-
.recalled-reveal
|
|
13
|
+
.recalled-actions { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
14
|
+
.recalled-reveal, .recalled-reedit { 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; }
|
|
15
|
+
.recalled-reveal:hover, .recalled-reveal:focus-visible, .recalled-reedit:hover, .recalled-reedit:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
|
|
16
|
+
.recalled-reveal:focus-visible, .recalled-reedit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
17
|
+
.recalled-reveal[disabled], .recalled-reedit[disabled] { cursor: progress; opacity: .7; }
|
|
17
18
|
.recalled-body { width: 100%; padding-top: 7px; border-top: 1px solid var(--line); color: var(--ink); }
|
|
18
19
|
.recalled-body[hidden] { display: none; }
|
|
19
20
|
.msg.recalled-in .msg-text { animation: recall-in .18s ease both; }
|
|
@@ -42,10 +42,20 @@
|
|
|
42
42
|
@media (min-width: 1500px) and (min-height: 560px) {
|
|
43
43
|
#chatView { --side-pane-width: clamp(380px, 30vw, 640px); }
|
|
44
44
|
}
|
|
45
|
-
/* Wide
|
|
45
|
+
/* Wide side panes use the extra desktop width and keep the chat a 700px column.
|
|
46
|
+
The task board and every file preview follow the same rule. */
|
|
46
47
|
@media (min-width: 1500px) and (min-height: 900px) {
|
|
47
|
-
#app:has(#chatView.has-
|
|
48
|
-
#chatView.has-
|
|
48
|
+
#app:has(#chatView.has-doc),
|
|
49
|
+
#app:has(#chatView.has-pane) { max-width: 2200px; }
|
|
50
|
+
#chatView.has-doc,
|
|
51
|
+
#chatView.has-pane { --side-pane-width: min(720px, calc(100% - 960px)); }
|
|
52
|
+
}
|
|
53
|
+
/* From 1700px the document preview spends the extra width on the page and keeps
|
|
54
|
+
the conversation at 660px; the task board keeps its 700px chat until 920px. */
|
|
55
|
+
@media (min-width: 1700px) and (min-height: 900px) {
|
|
56
|
+
#chatView.has-doc,
|
|
57
|
+
#chatView.has-pane { --side-pane-width: min(1080px, calc(100% - 920px)); }
|
|
58
|
+
#chatView.has-tasks:not(.has-doc) { --side-pane-width: min(920px, calc(100% - 960px)); }
|
|
49
59
|
}
|
|
50
60
|
/* The separator owns one grid column of its own, so it never covers the chat. */
|
|
51
61
|
.side-pane-handle {
|
|
@@ -76,11 +86,37 @@
|
|
|
76
86
|
.side-pane-handle:focus-visible::before { background: var(--accent); }
|
|
77
87
|
body.is-resizing-pane { cursor: col-resize; user-select: none; }
|
|
78
88
|
@media (min-width: 1100px) and (min-height: 560px) {
|
|
89
|
+
/* Closed panes keep four tracks so side-pane.js can animate the column shut. */
|
|
90
|
+
#chatView { grid-template-columns: 252px minmax(0, 1fr) 0px 0px; }
|
|
91
|
+
#chatView.pane-animating { transition: grid-template-columns 180ms cubic-bezier(.2, .7, .3, 1); }
|
|
92
|
+
body.is-resizing-pane #chatView { transition: none; }
|
|
79
93
|
#chatView.has-doc,
|
|
80
|
-
#chatView.has-
|
|
94
|
+
#chatView.has-pane { grid-template-columns: 252px minmax(0, 1fr) 8px var(--side-pane-width); }
|
|
81
95
|
#chatView.has-doc > .side-pane-handle,
|
|
82
|
-
#chatView.has-
|
|
96
|
+
#chatView.has-pane > .side-pane-handle { display: flex; }
|
|
97
|
+
}
|
|
98
|
+
/* Any room tool promoted to the right-hand pane shares one column and frame. */
|
|
99
|
+
#chatView > dialog.pane-surface.is-pane {
|
|
100
|
+
position: relative;
|
|
101
|
+
inset: auto;
|
|
102
|
+
grid-column: 4;
|
|
103
|
+
grid-row: 1 / -1;
|
|
104
|
+
width: auto;
|
|
105
|
+
height: auto;
|
|
106
|
+
min-width: 0;
|
|
107
|
+
min-height: 0;
|
|
108
|
+
max-width: none;
|
|
109
|
+
max-height: none;
|
|
110
|
+
margin: 0;
|
|
111
|
+
border: 0;
|
|
112
|
+
border-left: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
|
|
113
|
+
border-radius: 0;
|
|
114
|
+
background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 84%, var(--accent-soft)), var(--surface) 32%);
|
|
115
|
+
box-shadow: none;
|
|
116
|
+
animation: none;
|
|
83
117
|
}
|
|
118
|
+
#chatView > dialog.pane-surface.is-pane[open] { display: flex; flex-direction: column; }
|
|
119
|
+
#chatView.has-doc > dialog.pane-surface.is-pane { display: none; }
|
|
84
120
|
.room-rail {
|
|
85
121
|
position: relative;
|
|
86
122
|
grid-column: 1;
|
|
@@ -244,7 +280,12 @@
|
|
|
244
280
|
.admin-dialog .admin-select { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 40px; padding: 6px 32px 6px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background-color: var(--surface); font: inherit; }
|
|
245
281
|
.admin-dialog .admin-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
246
282
|
.admin-enrollment { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--accent-soft); }
|
|
247
|
-
@media (max-width: 620px) {
|
|
283
|
+
@media (max-width: 620px) {
|
|
284
|
+
.admin-dialog { padding: 15px; }
|
|
285
|
+
#announcementsDialog, #remindersDialog { width: calc(100vw - 12px); max-height: calc(100dvh - 16px); border-radius: 16px; }
|
|
286
|
+
#announcementsDialog .admin-dialog-head, #remindersDialog .admin-dialog-head { padding: 13px 13px 9px; }
|
|
287
|
+
.announcements-body, .reminders-body { padding: 0 13px 13px; }
|
|
288
|
+
}
|
|
248
289
|
.rail-avatar { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); }
|
|
249
290
|
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #609773; box-shadow: 0 0 0 3px color-mix(in srgb, #609773 16%, transparent); }
|
|
250
291
|
#chatView > .chat-head { grid-column: 2; grid-row: 1; min-width: 0; }
|
|
@@ -266,13 +307,8 @@
|
|
|
266
307
|
.member-action { border: 0; background: transparent; padding: 2px 4px; color: var(--accent); font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; }
|
|
267
308
|
.member-action:hover { text-decoration: underline; }
|
|
268
309
|
#memberList li { align-items: center; }
|
|
269
|
-
.msg-text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
|
|
270
|
-
.msg-text th, .msg-text td { padding: 5px 9px; border: 1px solid var(--line); text-align: left; }
|
|
271
|
-
.msg-text td { overflow-wrap: normal; }
|
|
272
|
-
.msg-text th { white-space: nowrap; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
|
|
273
310
|
.msg-text input[type="checkbox"] { accent-color: var(--accent); }
|
|
274
311
|
.msg-text del { color: var(--ink-3); }
|
|
275
|
-
.msg-text hr { border: 0; border-top: 1px solid var(--line); }
|
|
276
312
|
.mermaid-diagram { max-width: 100%; overflow-x: auto; }
|
|
277
313
|
.mermaid-diagram svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
|
|
278
314
|
.diagram-status { margin: 0 0 6px; color: var(--ink-3); font-size: 12px; }
|
|
@@ -385,3 +421,36 @@
|
|
|
385
421
|
#btnMembers { position: relative; }
|
|
386
422
|
#joinRequestBadge { position: absolute; top: -5px; right: -5px; margin: 0; font-size: 10px; }
|
|
387
423
|
}
|
|
424
|
+
|
|
425
|
+
/* Borderless PWA: drop the inset card without moving the rail/chat/pane grid. */
|
|
426
|
+
:root[data-window-frame="borderless"] body { background: var(--surface); }
|
|
427
|
+
:root[data-window-frame="borderless"] #app,
|
|
428
|
+
:root[data-window-frame="borderless"] #app:has(#chatView.has-doc),
|
|
429
|
+
:root[data-window-frame="borderless"] #app:has(#chatView.has-pane) { max-width: none; }
|
|
430
|
+
:root[data-window-frame="borderless"] #chatView {
|
|
431
|
+
width: 100%;
|
|
432
|
+
height: 100%;
|
|
433
|
+
margin: 0;
|
|
434
|
+
border: 0;
|
|
435
|
+
border-radius: 0;
|
|
436
|
+
box-shadow: none;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/* A browser-local wallpaper covers the whole client window behind the app.
|
|
440
|
+
The conversation plane stays transparent so the image reaches past the
|
|
441
|
+
message column; bubbles keep their own readable surfaces. */
|
|
442
|
+
html.has-chat-background body::before {
|
|
443
|
+
content: "";
|
|
444
|
+
position: fixed;
|
|
445
|
+
inset: 0;
|
|
446
|
+
z-index: 0;
|
|
447
|
+
background-image: var(--chat-background-image, none);
|
|
448
|
+
background-position: center;
|
|
449
|
+
background-size: cover;
|
|
450
|
+
background-repeat: no-repeat;
|
|
451
|
+
opacity: var(--chat-background-opacity, .35);
|
|
452
|
+
pointer-events: none;
|
|
453
|
+
}
|
|
454
|
+
html.has-chat-background #app { position: relative; z-index: 1; }
|
|
455
|
+
html.has-chat-background #chatView,
|
|
456
|
+
html.has-chat-background #chatView .thread { background: transparent; }
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
:root { color-scheme: light dark; }
|
|
3
3
|
:root[data-theme="light"] { color-scheme: light; }
|
|
4
4
|
:root[data-theme="dark"] { color-scheme: dark; }
|
|
5
|
-
:root[data-theme="forest"], :root[data-theme="sand"] { color-scheme: light; }
|
|
5
|
+
:root[data-theme="forest"], :root[data-theme="sand"], :root[data-theme="custom"] { color-scheme: light; }
|
|
6
6
|
|
|
7
7
|
@media (prefers-color-scheme: dark) {
|
|
8
|
-
:root:not([data-theme="light"]):not([data-theme="forest"]):not([data-theme="sand"]) {
|
|
8
|
+
:root:not([data-theme="light"]):not([data-theme="forest"]):not([data-theme="sand"]):not([data-theme="custom"]) {
|
|
9
9
|
--bg: #111b19;
|
|
10
10
|
--surface: #182522;
|
|
11
11
|
--surface-2: #202f2b;
|
|
@@ -83,11 +83,55 @@
|
|
|
83
83
|
--shadow: 0 2px 5px rgb(77 57 30 / .06), 0 18px 44px rgb(77 57 30 / .1);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
/* A user-picked background stays a light palette; surfaces tint toward the choice
|
|
87
|
+
so text keeps its contrast whatever color the picker returns. */
|
|
88
|
+
:root[data-theme="custom"] {
|
|
89
|
+
--bg: var(--custom-bg, #22695c);
|
|
90
|
+
--surface: color-mix(in srgb, var(--custom-bg, #22695c) 46%, #fffefa);
|
|
91
|
+
--surface-2: color-mix(in srgb, var(--custom-bg, #22695c) 58%, #fffefa);
|
|
92
|
+
--ink: #1e2c29;
|
|
93
|
+
--ink-2: #455651;
|
|
94
|
+
--ink-3: #63716b;
|
|
95
|
+
--line: color-mix(in srgb, var(--custom-bg, #22695c) 52%, #dcded4);
|
|
96
|
+
--accent: #22695c;
|
|
97
|
+
--accent-ink: #fffdf6;
|
|
98
|
+
--accent-soft: color-mix(in srgb, var(--custom-bg, #22695c) 40%, #fffefa);
|
|
99
|
+
--danger: #a84437;
|
|
100
|
+
--danger-soft: #f7e8e1;
|
|
101
|
+
--warning: #a9761c;
|
|
102
|
+
--warning-ink: #fffdf6;
|
|
103
|
+
--mention-blue: #266c72;
|
|
104
|
+
--shadow: 0 2px 5px rgb(34 53 47 / .05), 0 18px 44px rgb(34 53 47 / .09);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Dark custom colors keep the chosen hue only as a tint; every surface and text
|
|
108
|
+
token flips so the page stays readable on the join screen and in dialogs too. */
|
|
109
|
+
:root[data-theme="custom"][data-custom-dark="true"] {
|
|
110
|
+
color-scheme: dark;
|
|
111
|
+
--bg: var(--custom-bg, #22695c);
|
|
112
|
+
--surface: color-mix(in srgb, var(--custom-bg, #22695c) 45%, #0f1917);
|
|
113
|
+
--surface-2: color-mix(in srgb, var(--custom-bg, #22695c) 58%, #0f1917);
|
|
114
|
+
--ink: #f1f6f1;
|
|
115
|
+
--ink-2: #c7d3cb;
|
|
116
|
+
--ink-3: #a3b1a8;
|
|
117
|
+
--line: color-mix(in srgb, var(--custom-bg, #22695c) 58%, #3d4f48);
|
|
118
|
+
--accent: #9bd8b7;
|
|
119
|
+
--accent-ink: #0f241b;
|
|
120
|
+
--accent-soft: color-mix(in srgb, var(--custom-bg, #22695c) 60%, #22322c);
|
|
121
|
+
--danger: #f0a18c;
|
|
122
|
+
--danger-soft: #3b2924;
|
|
123
|
+
--warning: #d9a441;
|
|
124
|
+
--warning-ink: #241a09;
|
|
125
|
+
--mention-blue: #8bc8c2;
|
|
126
|
+
--shadow: 0 2px 6px rgb(0 0 0 / .3), 0 18px 44px rgb(0 0 0 / .4);
|
|
127
|
+
}
|
|
128
|
+
|
|
86
129
|
/* The redrawn select chevron follows the palette, not only the system scheme. */
|
|
87
130
|
@media (prefers-color-scheme: dark) {
|
|
88
|
-
:root:not([data-theme="light"]):not([data-theme="forest"]):not([data-theme="sand"]) select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23a6b3aa' 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'/%3E%3C/svg%3E"); }
|
|
131
|
+
:root:not([data-theme="light"]):not([data-theme="forest"]):not([data-theme="sand"]):not([data-theme="custom"]) select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23a6b3aa' 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'/%3E%3C/svg%3E"); }
|
|
89
132
|
}
|
|
90
|
-
:root[data-theme="dark"] select
|
|
133
|
+
:root[data-theme="dark"] select,
|
|
134
|
+
:root[data-theme="custom"][data-custom-dark="true"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23a6b3aa' 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'/%3E%3C/svg%3E"); }
|
|
91
135
|
|
|
92
136
|
/* The join header keeps one settings entry instead of its own language control. */
|
|
93
137
|
.join-head .join-settings { grid-column: 2; grid-row: 1; justify-self: end; }
|
|
@@ -99,8 +143,8 @@
|
|
|
99
143
|
/* Settings: one dialog for language, appearance, and the optional access token. */
|
|
100
144
|
.settings-dialog { width: min(1000px, calc(100vw - 32px)); max-width: none; height: min(720px, calc(100dvh - 40px)); max-height: none; margin: auto; padding: 0; overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line)); border-radius: 22px; box-shadow: 0 30px 90px rgb(8 22 18 / .32); }
|
|
101
145
|
.settings-dialog[open] { display: flex; flex-direction: column; animation: settings-in .18s ease-out both; }
|
|
102
|
-
.settings-dialog::backdrop { background: rgb(8 20 16 / .52);
|
|
103
|
-
@keyframes settings-in { from { opacity: 0;
|
|
146
|
+
.settings-dialog::backdrop { background: rgb(8 20 16 / .52); }
|
|
147
|
+
@keyframes settings-in { from { opacity: 0; } }
|
|
104
148
|
@media (prefers-reduced-motion: reduce) { .settings-dialog[open] { animation: none; } }
|
|
105
149
|
|
|
106
150
|
.settings-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; }
|
|
@@ -135,12 +179,132 @@
|
|
|
135
179
|
/* A caution hint keeps its icon on the first line at every width. */
|
|
136
180
|
.settings-icon-hint { display: flex; align-items: flex-start; gap: 6px; }
|
|
137
181
|
.settings-icon-hint .fluent-icon { flex: none; width: 14px; height: 14px; margin-top: 2px; }
|
|
138
|
-
.settings-select {
|
|
182
|
+
.settings-select {
|
|
183
|
+
width: 168px;
|
|
184
|
+
height: 38px;
|
|
185
|
+
min-height: 38px;
|
|
186
|
+
padding: 5px 31px 5px 9px;
|
|
187
|
+
border-radius: 8px;
|
|
188
|
+
font-size: 13.5px;
|
|
189
|
+
line-height: 1.25;
|
|
190
|
+
}
|
|
139
191
|
.settings-range { display: flex; align-items: center; gap: 10px; width: 190px; }
|
|
140
192
|
.settings-range input { flex: 1; min-width: 0; accent-color: var(--accent); cursor: pointer; }
|
|
141
193
|
.settings-range input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
142
194
|
.settings-range-value { flex: none; width: 42px; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
|
|
143
195
|
|
|
196
|
+
/* Browser-local chat background controls; the conversation layer lives in conversation.css. */
|
|
197
|
+
/* The compound selector must beat the generic `.settings-block` rule below. */
|
|
198
|
+
.settings-block.chat-background-block { margin-top: 28px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
|
|
199
|
+
.chat-background-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 14px; }
|
|
200
|
+
.chat-background-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 42px; padding: 4px 0; }
|
|
201
|
+
.chat-background-field + .chat-background-field { border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
|
|
202
|
+
.chat-background-field .field-label { flex: none; color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
|
|
203
|
+
.chat-background-field .settings-select { flex: none; }
|
|
204
|
+
.chat-background-opacity { flex: none; width: 168px; max-width: 168px; }
|
|
205
|
+
.chat-background-image-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; }
|
|
206
|
+
.chat-background-image-field .field-label { grid-column: 1; }
|
|
207
|
+
.chat-background-image-field .input { grid-column: 2; width: 100%; max-width: 100%; font-size: 12.5px; }
|
|
208
|
+
.chat-background-image-field .chat-background-preview,
|
|
209
|
+
.chat-background-image-field .chat-background-file-name { grid-column: 1 / -1; }
|
|
210
|
+
.chat-background-preview { display: block; width: 100%; height: 120px; margin-top: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); object-fit: cover; }
|
|
211
|
+
.chat-background-file-name { min-width: 0; overflow: hidden; color: var(--ink-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
|
|
212
|
+
.chat-background-status { margin-top: 10px; color: var(--ink-3); }
|
|
213
|
+
.chat-background-status.is-error { color: var(--danger); }
|
|
214
|
+
.chat-background-status[hidden] { display: none; }
|
|
215
|
+
@media (max-width: 620px) {
|
|
216
|
+
.chat-background-controls { grid-template-columns: minmax(0, 1fr); }
|
|
217
|
+
.chat-background-image-field { grid-column: auto; }
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.integration-panel { display: grid; gap: 14px; align-content: start; }
|
|
221
|
+
.integration-body { display: grid; gap: 14px; }
|
|
222
|
+
.integration-body[hidden] { display: none; }
|
|
223
|
+
.integration-lead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
|
|
224
|
+
.integration-lead .settings-hint { max-width: 560px; }
|
|
225
|
+
.integration-error { margin: 0; }
|
|
226
|
+
.integration-external-notice { margin: 0; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--warning) 32%, var(--line)); border-radius: 11px; color: var(--ink-2); background: color-mix(in srgb, var(--warning) 9%, var(--surface)); font-size: 12.5px; line-height: 1.45; }
|
|
227
|
+
.integration-enable-row { padding: 14px 0; }
|
|
228
|
+
.integration-section { display: grid; gap: 8px; padding: 14px 0 0; border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
|
|
229
|
+
.integration-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
|
|
230
|
+
.integration-section-head h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
|
|
231
|
+
.integration-accounts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
|
|
232
|
+
.integration-account { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
|
|
233
|
+
.integration-account-main { min-width: 0; }
|
|
234
|
+
.integration-account-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; }
|
|
235
|
+
.integration-account-id { color: var(--ink); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
|
|
236
|
+
.integration-platform { padding: 1px 7px; border-radius: 999px; color: var(--ink-3); background: var(--surface-2); font-size: 10px; font-weight: 700; letter-spacing: .03em; }
|
|
237
|
+
.integration-state { padding: 1px 7px; border-radius: 999px; color: var(--ink-3); font-size: 10px; font-weight: 700; }
|
|
238
|
+
.integration-state[data-state="started"] { color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
|
|
239
|
+
.integration-state[data-state="error"], .integration-state[data-state="failed"] { color: var(--danger); background: var(--danger-soft); }
|
|
240
|
+
.integration-account-meta { margin: 3px 0 0; color: var(--ink-3); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
|
|
241
|
+
.integration-account-error { margin: 4px 0 0; color: var(--danger); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
|
|
242
|
+
.integration-account-actions { display: flex; align-items: center; gap: 4px; }
|
|
243
|
+
.integration-account-actions .btn { padding: 5px 9px; font-size: 11.5px; }
|
|
244
|
+
.integration-plugins { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
|
|
245
|
+
.integration-plugin { display: flex; align-items: center; gap: 8px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 12px; }
|
|
246
|
+
.integration-plugin-name { color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
|
|
247
|
+
.btn.integration-plugin-download { display: grid; place-items: center; width: 24px; height: 24px; min-width: 24px; padding: 0; }
|
|
248
|
+
.integration-plugin-download .fluent-icon { width: 14px; height: 14px; }
|
|
249
|
+
.integration-rules { width: 100%; min-height: 170px; font-family: var(--font-mono); font-size: 12px; line-height: 1.55; resize: vertical; }
|
|
250
|
+
.integration-rules-editor { width: 100%; height: 320px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
|
|
251
|
+
.integration-rules-editor .monaco-editor, .integration-rules-editor .monaco-editor .overflow-guard { border-radius: 11px; }
|
|
252
|
+
.integration-format-toggle { display: inline-flex; flex: none; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
|
|
253
|
+
.integration-format-btn { padding: 5px 9px; border: 0; border-radius: 999px; color: var(--ink-3); background: transparent; font: 650 10.5px/1 var(--font-mono); letter-spacing: .02em; cursor: pointer; }
|
|
254
|
+
.integration-format-btn[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgb(34 53 47 / .12); }
|
|
255
|
+
.integration-format-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
256
|
+
.integration-rule-errors { display: grid; gap: 2px; max-height: 132px; margin: 0; padding: 0; overflow: auto; list-style: none; }
|
|
257
|
+
.integration-rule-error { width: 100%; padding: 2px 0; border: 0; color: var(--danger); background: none; font: 12px/1.45 var(--font-mono); text-align: left; overflow-wrap: anywhere; cursor: pointer; }
|
|
258
|
+
.integration-rule-error:hover { text-decoration: underline; }
|
|
259
|
+
.integration-rule-error:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
260
|
+
.integration-field-error { margin: 0; color: var(--danger); font-size: 12px; line-height: 1.45; white-space: pre-wrap; }
|
|
261
|
+
.integration-actions { position: sticky; bottom: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 10px 0 4px; border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent); background: var(--surface); }
|
|
262
|
+
.integration-dialog { width: min(620px, calc(100vw - 24px)); max-height: min(820px, 90dvh); }
|
|
263
|
+
.integration-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
|
|
264
|
+
.integration-form { display: grid; gap: 10px; min-height: 0; padding: 0 20px 20px; overflow-y: auto; }
|
|
265
|
+
.integration-form .field { margin: 0; }
|
|
266
|
+
.integration-source { min-height: 160px; font-family: var(--font-mono); font-size: 12px; resize: vertical; }
|
|
267
|
+
.integration-env-field { margin: 0; padding: 0; border: 0; }
|
|
268
|
+
.integration-env-rows { display: grid; gap: 6px; margin: 6px 0; }
|
|
269
|
+
.integration-env-row { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(0, 1fr) auto; align-items: center; gap: 6px; }
|
|
270
|
+
.integration-env-row .input { min-height: 34px; font-size: 13px; }
|
|
271
|
+
.integration-env-combo { position: relative; min-width: 0; }
|
|
272
|
+
.integration-env-combo .input { width: 100%; }
|
|
273
|
+
.integration-env-menu { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 220px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
|
|
274
|
+
.integration-env-menu[hidden] { display: none; }
|
|
275
|
+
.integration-env-option { display: grid; gap: 1px; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
|
|
276
|
+
.integration-env-option:hover, .integration-env-option:focus-visible { background: var(--surface-2); outline: none; }
|
|
277
|
+
.integration-env-option-key { font-family: var(--font-mono); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
|
|
278
|
+
.integration-env-option-desc { color: var(--ink-3); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
|
|
279
|
+
.integration-env-row.is-stored .integration-env-key { background: var(--surface-2); }
|
|
280
|
+
.integration-env-row.is-stored .integration-env-value { border-style: dashed; }
|
|
281
|
+
/* Icon-only buttons must outrank the shared .btn.small padding rule. */
|
|
282
|
+
.btn.integration-env-remove, .btn.integration-env-add { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; }
|
|
283
|
+
.integration-env-remove .fluent-icon { width: 16px; height: 16px; }
|
|
284
|
+
.integration-env-add .fluent-icon { width: 16px; height: 16px; }
|
|
285
|
+
.integration-env-actions { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
286
|
+
.integration-env-note { margin: 4px 0 0; color: var(--warning); font-size: 12px; font-weight: 600; }
|
|
287
|
+
.integration-schema { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
|
|
288
|
+
.integration-schema[hidden] { display: none; }
|
|
289
|
+
.integration-schema-field .hint { display: block; margin-top: 3px; }
|
|
290
|
+
.integration-required { color: var(--danger); }
|
|
291
|
+
.integration-advanced { margin: 0; padding: 0; border: 0; }
|
|
292
|
+
.integration-advanced summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
|
|
293
|
+
.integration-advanced summary::-webkit-details-marker { display: none; }
|
|
294
|
+
.integration-advanced-icon { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .15s; }
|
|
295
|
+
.integration-advanced[open] .integration-advanced-icon { transform: rotate(0deg); }
|
|
296
|
+
.integration-advanced[open] summary { margin-bottom: 6px; }
|
|
297
|
+
@media (max-width: 620px) {
|
|
298
|
+
.integration-panel { gap: 10px; }
|
|
299
|
+
.integration-account { grid-template-columns: minmax(0, 1fr); }
|
|
300
|
+
.integration-account-actions { justify-content: flex-end; }
|
|
301
|
+
.integration-form { padding: 0 14px 14px; }
|
|
302
|
+
.integration-env-row { grid-template-columns: minmax(0, 1fr) auto; }
|
|
303
|
+
.integration-env-key { grid-column: 1 / -1; }
|
|
304
|
+
.integration-env-value { grid-column: 1; }
|
|
305
|
+
.integration-env-remove { grid-column: 2; }
|
|
306
|
+
}
|
|
307
|
+
|
|
144
308
|
.settings-switch { position: relative; flex: none; appearance: none; width: 42px; height: 24px; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); cursor: pointer; transition: background .16s, border-color .16s; }
|
|
145
309
|
.settings-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgb(34 53 47 / .18); transition: transform .16s, background .16s; }
|
|
146
310
|
.settings-switch:checked { border-color: var(--accent); background: var(--accent); }
|
|
@@ -154,12 +318,22 @@
|
|
|
154
318
|
.theme-option { position: relative; display: grid; gap: 8px; min-width: 0; padding: 8px 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
|
|
155
319
|
.theme-option:hover { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); }
|
|
156
320
|
.theme-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
|
|
157
|
-
.theme-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
|
|
321
|
+
.theme-option input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
|
|
322
|
+
.theme-color-input { width: 100%; height: 28px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
|
|
323
|
+
.theme-color-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
158
324
|
.theme-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
159
325
|
.theme-option:has(input:checked)::after { content: "✓"; position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--accent-ink); background: var(--accent); font-size: 11px; font-weight: 700; line-height: 1; }
|
|
160
326
|
.theme-preview { position: relative; display: block; height: 64px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 75%, transparent); border-radius: 9px; background: var(--swatch-bg, var(--surface-2)); }
|
|
161
327
|
.theme-preview::before { content: ""; position: absolute; top: 10px; left: 10px; right: 10px; height: 14px; border-radius: 5px; background: var(--swatch-surface, var(--surface)); }
|
|
162
328
|
.theme-preview::after { content: ""; position: absolute; left: 10px; bottom: 10px; width: 26px; height: 6px; border-radius: 99px; background: var(--swatch-accent, var(--accent)); }
|
|
329
|
+
.panel-mode-block { margin-top: 22px; padding-top: 4px; }
|
|
330
|
+
.panel-mode-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 10px; }
|
|
331
|
+
.panel-mode-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 4px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); color: var(--ink-2); font-size: 13.5px; }
|
|
332
|
+
.panel-mode-row:last-child { border-bottom: 0; }
|
|
333
|
+
.panel-mode-row select { flex: none; }
|
|
334
|
+
@media (max-width: 620px) {
|
|
335
|
+
.panel-mode-row select { flex: none; }
|
|
336
|
+
}
|
|
163
337
|
.theme-name { min-width: 0; overflow: hidden; color: var(--ink-2); font-size: 11.5px; font-weight: 600; line-height: 1.3; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
|
|
164
338
|
.theme-option:has(input:checked) .theme-name { color: var(--ink); }
|
|
165
339
|
.theme-option[data-theme-choice="system"] .theme-preview { background: linear-gradient(118deg, #f3f1ea 0 50%, #111b19 50%); }
|
|
@@ -169,6 +343,8 @@
|
|
|
169
343
|
.theme-option[data-theme-choice="dark"] .theme-preview { --swatch-bg: #111b19; --swatch-surface: #182522; --swatch-accent: #8ac9aa; }
|
|
170
344
|
.theme-option[data-theme-choice="forest"] .theme-preview { --swatch-bg: #e7ede2; --swatch-surface: #f7faf4; --swatch-accent: #2f6b45; }
|
|
171
345
|
.theme-option[data-theme-choice="sand"] .theme-preview { --swatch-bg: #f4e9d6; --swatch-surface: #fff9ef; --swatch-accent: #9a5a32; }
|
|
346
|
+
.theme-option[data-theme-choice="custom"] .theme-preview { --swatch-bg: var(--custom-bg, #22695c); --swatch-surface: color-mix(in srgb, var(--custom-bg, #22695c) 46%, #fffefa); --swatch-accent: #22695c; }
|
|
347
|
+
:root[data-custom-dark="true"] .theme-option[data-theme-choice="custom"] .theme-preview { --swatch-surface: color-mix(in srgb, var(--custom-bg, #22695c) 45%, #0f1917); --swatch-accent: #9bd8b7; }
|
|
172
348
|
|
|
173
349
|
.settings-token-control { display: flex; align-items: center; gap: 8px; }
|
|
174
350
|
.settings-token-control .input { width: 220px; min-height: 38px; }
|
|
@@ -182,7 +358,7 @@
|
|
|
182
358
|
.settings-head h2 { font-size: 20px; }
|
|
183
359
|
.settings-close { width: 40px; height: 40px; }
|
|
184
360
|
.settings-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
|
|
185
|
-
.settings-nav { display: grid; grid-template-columns: repeat(
|
|
361
|
+
.settings-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 4px; padding: 0 12px 12px; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent); overflow: visible; }
|
|
186
362
|
.settings-tab { flex-direction: column; justify-content: center; gap: 4px; min-height: 52px; padding: 7px 4px; font-size: 11.5px; text-align: center; }
|
|
187
363
|
.settings-tab svg { width: 16px; height: 16px; }
|
|
188
364
|
.settings-panel { padding: 8px 16px 24px; }
|
package/server/assets/tasks.css
CHANGED
|
@@ -139,6 +139,16 @@
|
|
|
139
139
|
padding: 8px 10px;
|
|
140
140
|
}
|
|
141
141
|
.tasks-error .btn { flex: none; }
|
|
142
|
+
.tasks-limit-notice {
|
|
143
|
+
margin: 0 0 10px;
|
|
144
|
+
padding: 8px 10px;
|
|
145
|
+
border: 1px solid color-mix(in srgb, var(--warning) 34%, var(--line));
|
|
146
|
+
border-radius: 10px;
|
|
147
|
+
color: var(--ink-2);
|
|
148
|
+
background: color-mix(in srgb, var(--warning) 9%, var(--surface));
|
|
149
|
+
font-size: 12px;
|
|
150
|
+
line-height: 1.45;
|
|
151
|
+
}
|
|
142
152
|
|
|
143
153
|
.tasks-scroll {
|
|
144
154
|
flex: 0 1 auto;
|
|
@@ -199,17 +209,35 @@
|
|
|
199
209
|
.task-field .input { min-height: 36px; font-size: 12.5px; }
|
|
200
210
|
.task-create-form textarea { min-height: 52px; resize: vertical; }
|
|
201
211
|
|
|
202
|
-
.task-people-field, .task-steps-field
|
|
212
|
+
.task-people-field, .task-steps-field,
|
|
213
|
+
.task-edit-participants-field, .task-edit-steps-field {
|
|
214
|
+
min-width: 0;
|
|
215
|
+
margin: 0;
|
|
216
|
+
padding: 9px 11px;
|
|
217
|
+
border: 1px solid var(--line);
|
|
218
|
+
border-radius: 12px;
|
|
219
|
+
background: var(--surface);
|
|
220
|
+
}
|
|
221
|
+
.task-people-field > legend, .task-steps-field > legend,
|
|
222
|
+
.task-edit-participants-field > legend, .task-edit-steps-field > legend {
|
|
223
|
+
display: block;
|
|
224
|
+
float: none;
|
|
225
|
+
width: auto;
|
|
226
|
+
margin: 0 0 6px;
|
|
227
|
+
padding: 0;
|
|
228
|
+
border: 0;
|
|
229
|
+
background: transparent;
|
|
230
|
+
}
|
|
203
231
|
.task-people {
|
|
204
232
|
display: flex;
|
|
205
233
|
flex-wrap: wrap;
|
|
206
234
|
gap: 4px 12px;
|
|
207
235
|
max-height: 112px;
|
|
208
|
-
padding:
|
|
236
|
+
padding: 0;
|
|
209
237
|
overflow: auto;
|
|
210
|
-
border:
|
|
211
|
-
border-radius:
|
|
212
|
-
background:
|
|
238
|
+
border: 0;
|
|
239
|
+
border-radius: 0;
|
|
240
|
+
background: transparent;
|
|
213
241
|
}
|
|
214
242
|
.task-person { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--ink-2); font-size: 12px; cursor: pointer; }
|
|
215
243
|
.task-person input, .task-step-done { flex: none; width: 15px; height: 15px; accent-color: var(--accent); }
|
|
@@ -263,7 +291,6 @@
|
|
|
263
291
|
animation-delay: calc(var(--task-i, 0) * 14ms);
|
|
264
292
|
}
|
|
265
293
|
.task-row[data-status="done"] { background: color-mix(in srgb, var(--surface-2) 42%, var(--surface)); }
|
|
266
|
-
.task-row-editing { display: block; }
|
|
267
294
|
@keyframes task-row-in { from { opacity: 0; transform: translateY(3px); } }
|
|
268
295
|
|
|
269
296
|
.task-main { min-width: 0; }
|
|
@@ -370,6 +397,26 @@
|
|
|
370
397
|
.task-action-delete:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, transparent); background: var(--danger-soft); }
|
|
371
398
|
.task-action:focus-visible, .task-status-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
372
399
|
|
|
400
|
+
#taskEditDialog {
|
|
401
|
+
width: min(660px, calc(100vw - 24px));
|
|
402
|
+
max-width: none;
|
|
403
|
+
max-height: min(760px, 90dvh);
|
|
404
|
+
margin: auto;
|
|
405
|
+
padding: 0;
|
|
406
|
+
overflow: hidden;
|
|
407
|
+
border-radius: 20px;
|
|
408
|
+
}
|
|
409
|
+
#taskEditDialog[open] { display: flex; flex-direction: column; animation: tasks-in .18s ease-out both; }
|
|
410
|
+
#taskEditDialog .admin-dialog-head { flex: none; padding: 18px 20px 12px; }
|
|
411
|
+
.task-edit-body {
|
|
412
|
+
flex: 1 1 auto;
|
|
413
|
+
min-height: 0;
|
|
414
|
+
padding: 0 20px 20px;
|
|
415
|
+
overflow-y: auto;
|
|
416
|
+
overscroll-behavior: contain;
|
|
417
|
+
}
|
|
418
|
+
.task-edit-error { margin: 0 0 10px; }
|
|
419
|
+
|
|
373
420
|
.task-edit-form {
|
|
374
421
|
display: grid;
|
|
375
422
|
grid-template-columns: minmax(0, 1fr) minmax(150px, 200px);
|
|
@@ -386,6 +433,9 @@
|
|
|
386
433
|
|
|
387
434
|
@media (max-width: 620px) {
|
|
388
435
|
#tasksDialog { width: calc(100vw - 12px); height: calc(100dvh - 16px); max-height: none; border-radius: 16px; }
|
|
436
|
+
#taskEditDialog { width: calc(100vw - 12px); max-height: calc(100dvh - 16px); border-radius: 16px; }
|
|
437
|
+
#taskEditDialog .admin-dialog-head { padding: 13px 13px 9px; }
|
|
438
|
+
.task-edit-body { padding: 0 13px 13px; }
|
|
389
439
|
.tasks-head { padding: 13px 13px 8px; }
|
|
390
440
|
.tasks-heading h2 { font-size: 19px; }
|
|
391
441
|
.tasks-toolbar { padding: 0 13px 8px; align-items: flex-start; }
|
|
@@ -415,5 +465,5 @@
|
|
|
415
465
|
}
|
|
416
466
|
|
|
417
467
|
@media (prefers-reduced-motion: reduce) {
|
|
418
|
-
#tasksDialog[open], .task-row { animation: none; }
|
|
468
|
+
#tasksDialog[open], #taskEditDialog[open], .task-row { animation: none; }
|
|
419
469
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* Installed PWA with a visible Window Controls Overlay: the page draws under the
|
|
2
|
+
title bar, so the free titlebar area becomes a drag strip and the app starts
|
|
3
|
+
below it. Without [data-wco] none of this applies. */
|
|
4
|
+
html[data-wco="true"] body {
|
|
5
|
+
display: grid;
|
|
6
|
+
grid-template-rows: calc(env(titlebar-area-y, var(--wco-top, 0px)) + env(titlebar-area-height, var(--wco-height, 0px))) minmax(0, 1fr);
|
|
7
|
+
background: var(--surface);
|
|
8
|
+
}
|
|
9
|
+
html[data-wco="true"] #app {
|
|
10
|
+
grid-row: 2;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
min-height: 0;
|
|
14
|
+
max-width: none;
|
|
15
|
+
}
|
|
16
|
+
html[data-wco="true"] #app:has(#chatView.has-doc),
|
|
17
|
+
html[data-wco="true"] #app:has(#chatView.has-pane) { max-width: none; }
|
|
18
|
+
html[data-wco="true"] #chatView {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
margin: 0;
|
|
22
|
+
border: 0;
|
|
23
|
+
border-radius: 0;
|
|
24
|
+
box-shadow: none;
|
|
25
|
+
}
|
|
26
|
+
.wco-drag { display: none; }
|
|
27
|
+
html[data-wco="true"] .wco-drag {
|
|
28
|
+
display: block;
|
|
29
|
+
position: fixed;
|
|
30
|
+
top: env(titlebar-area-y, var(--wco-top, 0px));
|
|
31
|
+
left: env(titlebar-area-x, var(--wco-left, 0px));
|
|
32
|
+
width: env(titlebar-area-width, var(--wco-width, 100%));
|
|
33
|
+
height: env(titlebar-area-height, var(--wco-height, 0px));
|
|
34
|
+
-webkit-app-region: drag;
|
|
35
|
+
app-region: drag;
|
|
36
|
+
}
|