@yanzc/claude-pro 0.10.0 → 0.12.0
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/README.md +66 -35
- package/package.json +1 -1
- package/src/agent.js +16 -6
- package/src/browser/session.js +32 -2
- package/src/commands.js +160 -11
- package/src/config.js +42 -10
- package/src/live.js +148 -0
- package/src/main.js +5 -3
- package/src/peers.js +64 -10
- package/src/providers.js +10 -1
- package/src/remote.js +90 -243
- package/src/runtime.js +36 -11
- package/src/selfcheck.js +3 -3
- package/src/session.js +116 -7
- package/src/supervisor.js +1 -1
- package/src/tools/bash.js +23 -20
- package/src/tools/browser.js +14 -8
- package/src/tools/code.js +18 -11
- package/src/tools/peers.js +6 -5
- package/src/tools/restart.js +1 -1
- package/src/ui/dialogs.js +23 -30
- package/src/ui/editor.js +65 -169
- package/src/ui/repl.js +470 -449
- package/src/ui/screen.js +47 -674
- package/src/updater.js +5 -4
- package/src/utils/shell.js +4 -5
- package/src/web/api.js +787 -0
- package/src/web/app.css +412 -0
- package/src/web/app.js +1850 -0
- package/src/web/data.js +424 -0
- package/src/web/host.js +334 -0
- package/src/web/login.html +66 -0
- package/src/web/page.html +41 -0
- package/src/web/remote-access.js +232 -0
- package/src/web/server.js +459 -0
package/src/web/app.css
ADDED
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--bg: #f6f7f9; --surface: #fff; --surface-2: #f1f3f6; --line: #e3e6eb; --line-strong: #cfd4dc;
|
|
3
|
+
--text: #111827; --text-2: #374151; --muted: #6b7280; --faint: #9ca3af;
|
|
4
|
+
--accent: #d97757; --accent-hover: #c4633f; --accent-soft: #fbeee8; --accent-text: #b4532f;
|
|
5
|
+
--ok: #15803d; --ok-soft: #e8f6ec; --warn: #b45309; --warn-soft: #fdf3e2; --danger: #dc2626; --danger-soft: #fdecec;
|
|
6
|
+
--code-bg: #f3f4f6; --term-bg: #fbfbfc; --shadow: 0 1px 2px rgba(16, 24, 40, .05); --radius: 10px;
|
|
7
|
+
--rc-fg: #111827; --rc-bg: #fff;
|
|
8
|
+
--side-bg: #f7f7f8; --main-bg: #ffffff; --bubble: #eff1f5; --diff-add-bg: #e6ffec; --diff-add-fg: #116329; --diff-del-bg: #ffebe9; --diff-del-fg: #a40e26; --diff-add-word: #abf2bc; --diff-del-word: #ffc1c0; --hover: rgba(0, 0, 0, .05); --active: rgba(0, 0, 0, .075);
|
|
9
|
+
--mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, "Microsoft YaHei UI", monospace;
|
|
10
|
+
color-scheme: light;
|
|
11
|
+
}
|
|
12
|
+
:root[data-theme="dark"] {
|
|
13
|
+
--bg: #0f1115; --surface: #171a21; --surface-2: #1e222b; --line: #2a2f3a; --line-strong: #3a404d;
|
|
14
|
+
--text: #e5e7eb; --text-2: #cbd0d8; --muted: #9aa1ad; --faint: #6b7280;
|
|
15
|
+
--accent: #e08a6a; --accent-hover: #ea9c7e; --accent-soft: rgba(224, 138, 106, .14); --accent-text: #f0a487;
|
|
16
|
+
--ok: #4ade80; --ok-soft: rgba(74, 222, 128, .12); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .12); --danger: #f87171; --danger-soft: rgba(248, 113, 113, .12);
|
|
17
|
+
--code-bg: #1f2430; --term-bg: #12151b; --shadow: none; --rc-fg: #e5e7eb; --rc-bg: #171a21;
|
|
18
|
+
--side-bg: #15171c; --main-bg: #0f1115; --bubble: #262a33; --diff-add-bg: rgba(46, 160, 67, .2); --diff-add-fg: #7ee787; --diff-del-bg: rgba(248, 81, 73, .2); --diff-del-fg: #ffa198; --diff-add-word: rgba(46, 160, 67, .45); --diff-del-word: rgba(248, 81, 73, .45); --hover: rgba(255, 255, 255, .06); --active: rgba(255, 255, 255, .1);
|
|
19
|
+
color-scheme: dark;
|
|
20
|
+
}
|
|
21
|
+
* { box-sizing: border-box; }
|
|
22
|
+
html, body { margin: 0; height: 100%; }
|
|
23
|
+
body { background: var(--bg); color: var(--text); font: 14px/1.55 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif; }
|
|
24
|
+
a { color: var(--accent-text); text-decoration: none; }
|
|
25
|
+
a:hover { text-decoration: underline; }
|
|
26
|
+
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
|
|
27
|
+
code { padding: 1px 5px; border-radius: 4px; background: var(--code-bg); }
|
|
28
|
+
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 700; }
|
|
29
|
+
h2 { font-size: 15px; margin: 0; font-weight: 650; }
|
|
30
|
+
h3 { font-size: 14px; margin: 0 0 6px; }
|
|
31
|
+
.sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
|
|
32
|
+
.hidden { display: none !important; }
|
|
33
|
+
|
|
34
|
+
/* layout: the sidebar (工作区) and the main pane */
|
|
35
|
+
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); height: 100vh; height: 100dvh; }
|
|
36
|
+
.drawer-close { display: none !important; }
|
|
37
|
+
.composer-left, .composer-right { display: flex; align-items: center; gap: 2px; min-width: 0; }
|
|
38
|
+
.side { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--side-bg); border-right: 1px solid var(--line); padding: 14px 12px 10px; }
|
|
39
|
+
.brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 14px; }
|
|
40
|
+
.brand-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
|
|
41
|
+
.brand strong { font-size: 16px; letter-spacing: -.2px; white-space: nowrap; }
|
|
42
|
+
.brand-tag { font-size: 10px; font-weight: 700; letter-spacing: .5px; padding: 1px 5px; border-radius: 3px; background: var(--text); color: var(--side-bg); }
|
|
43
|
+
.brand-release { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; white-space: nowrap; }
|
|
44
|
+
.brand-ver { color: var(--faint); font-size: 11.5px; }
|
|
45
|
+
.brand-update { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--hover); color: var(--accent-text); font: inherit; font-weight: 700; cursor: pointer; }
|
|
46
|
+
.brand-update:hover:not(:disabled) { background: var(--active); }
|
|
47
|
+
.brand-update:disabled { opacity: .65; cursor: wait; }
|
|
48
|
+
.side-new { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); margin-bottom: 10px; }
|
|
49
|
+
.side-new:hover, .side-new.active { text-decoration: none; border-color: var(--accent); }
|
|
50
|
+
.side-nav { display: grid; gap: 1px; }
|
|
51
|
+
.side-nav a, .side-more > summary { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; cursor: pointer; list-style: none; }
|
|
52
|
+
.side-more > summary::-webkit-details-marker { display: none; }
|
|
53
|
+
.side-nav a:hover, .side-more > summary:hover { background: var(--hover); text-decoration: none; }
|
|
54
|
+
.side-nav a.active { background: var(--hover); color: var(--text); font-weight: 600; }
|
|
55
|
+
.side-more a { padding-left: 37px; font-size: 13.5px; }
|
|
56
|
+
.ws-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 10px 6px; color: var(--muted); font-size: 13px; }
|
|
57
|
+
.ws-tools { display: flex; gap: 2px; }
|
|
58
|
+
.ws-tools button, .ws-tools a { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
|
|
59
|
+
.ws-tools button:hover, .ws-tools a:hover { background: var(--hover); color: var(--text); }
|
|
60
|
+
.ws-search { margin: 0 4px 6px; font-size: 13px; padding: 6px 9px; }
|
|
61
|
+
.ws { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
|
|
62
|
+
.ws-empty { color: var(--faint); font-size: 13px; padding: 10px; }
|
|
63
|
+
.ws-group { margin-bottom: 4px; }
|
|
64
|
+
.ws-folder { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
|
|
65
|
+
.ws-folder:hover { background: var(--hover); }
|
|
66
|
+
.ws-folder-row { position: relative; }
|
|
67
|
+
.ws-folder-row:hover .ws-folder { background: var(--hover); }
|
|
68
|
+
.ws-add { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; opacity: 0; }
|
|
69
|
+
.ws-add svg { width: 16px; height: 16px; }
|
|
70
|
+
.ws-folder-row:hover .ws-add, .ws-add:focus-visible { opacity: 1; }
|
|
71
|
+
.ws-add:hover, .ws-pmenu:hover { background: var(--surface-2); color: var(--text); }
|
|
72
|
+
.ws-pmenu { position: absolute; top: 50%; right: 32px; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; opacity: 0; }
|
|
73
|
+
.ws-pmenu svg { width: 16px; height: 16px; }
|
|
74
|
+
.ws-folder-row:hover .ws-pmenu, .ws-pmenu:focus-visible, .ws-pmenu[aria-expanded=true] { opacity: 1; }
|
|
75
|
+
.ws-pmenu[aria-expanded=true] { background: var(--surface-2); color: var(--text); }
|
|
76
|
+
.ws-folder-row:hover .ws-count, .ws-folder-row:has(.ws-pmenu[aria-expanded=true]) .ws-count { visibility: hidden; }
|
|
77
|
+
@media (hover: none) { .ws-add, .ws-pmenu { opacity: .7; } .ws-folder-row .ws-count { margin-right: 52px; } }
|
|
78
|
+
.ws-folder svg { color: var(--muted); flex: none; }
|
|
79
|
+
.ws-folder span:not(.ws-count) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
80
|
+
.ws-count { min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-size: 11px; line-height: 17px; text-align: center; }
|
|
81
|
+
.ws-row { position: relative; }
|
|
82
|
+
.ws-item { display: flex; align-items: center; gap: 7px; padding: 7px 10px 7px 34px; border-radius: 8px; color: var(--text); font-size: 13.5px; position: relative; }
|
|
83
|
+
.ws-row:hover .ws-item, .ws-row:focus-within .ws-item, .ws-row:has(.ws-menu[aria-expanded=true]) .ws-item { background: var(--hover); text-decoration: none; }
|
|
84
|
+
.ws-row .ws-item.active { background: var(--active); }
|
|
85
|
+
.ws-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
86
|
+
.ws-ago { color: var(--faint); font-size: 12px; flex: none; }
|
|
87
|
+
.ws-menu { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; opacity: 0; pointer-events: none; }
|
|
88
|
+
.ws-menu:hover, .ws-menu[aria-expanded=true] { background: var(--surface-2); color: var(--text); }
|
|
89
|
+
.ws-row:is(:hover, :focus-within, :has(.ws-menu[aria-expanded=true])) .ws-menu { opacity: 1; pointer-events: auto; }
|
|
90
|
+
.ws-row.has-menu:is(:hover, :focus-within, :has(.ws-menu[aria-expanded=true])) .ws-item { padding-right: 34px; }
|
|
91
|
+
.ws-row.has-menu:is(:hover, :focus-within, :has(.ws-menu[aria-expanded=true])) .ws-ago { display: none; }
|
|
92
|
+
@media (hover: none) { .ws-menu { opacity: 1; pointer-events: auto; } .ws-row.has-menu .ws-item { padding-right: 34px; } }
|
|
93
|
+
.ws-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; display: inline-block; }
|
|
94
|
+
.ws-item .ws-dot { position: absolute; left: 20px; }
|
|
95
|
+
.ws-dot.busy { background: var(--warn); animation: blink 1s infinite; }
|
|
96
|
+
.ws-dot.ask { background: var(--danger); }
|
|
97
|
+
.ws-dot.off { background: var(--faint); }
|
|
98
|
+
.ws-more { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; padding: 4px 10px 4px 34px; cursor: pointer; }
|
|
99
|
+
.ws-more:hover { color: var(--text); }
|
|
100
|
+
.side-foot { display: flex; align-items: center; gap: 4px; padding: 8px 0 0; border-top: 1px solid var(--line); margin-top: 6px; }
|
|
101
|
+
.side-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 5px 6px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
|
|
102
|
+
.side-me:hover, .side-me.open, .side-me.active { background: var(--hover); }
|
|
103
|
+
.side-caret { flex: none; color: var(--faint); }
|
|
104
|
+
.user-menu { position: absolute; z-index: 60; left: 10px; right: 10px; bottom: 58px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
|
|
105
|
+
.user-menu .side-nav a { padding: 8px 10px; }
|
|
106
|
+
.menu-sep { height: 1px; margin: 5px 4px; background: var(--line); }
|
|
107
|
+
.user-menu .remote-links { margin-top: 0; }
|
|
108
|
+
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--text-2); flex: none; }
|
|
109
|
+
.side-user { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
|
|
110
|
+
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font-size: 15px; flex: none; }
|
|
111
|
+
.icon-btn:hover { background: var(--hover); color: var(--text); }
|
|
112
|
+
.tip { position: fixed; z-index: 60; max-width: 320px; padding: 10px 13px; border-radius: 10px; background: #2b2b2e; color: #f2f2f2; font-size: 12.5px; line-height: 1.6; box-shadow: 0 10px 30px rgba(0,0,0,.25); pointer-events: none; }
|
|
113
|
+
.tip strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
|
|
114
|
+
.tip-path { color: #b9b9be; font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
|
|
115
|
+
.tip-state { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
|
|
116
|
+
.main { overflow-y: auto; min-width: 0; background: var(--main-bg); }
|
|
117
|
+
.page { max-width: 1180px; margin: 0 auto; padding: 28px 32px 60px; }
|
|
118
|
+
.page.wide { max-width: none; padding: 14px 24px; }
|
|
119
|
+
.page.chat { max-width: none; padding: 0; height: 100%; }
|
|
120
|
+
|
|
121
|
+
/* the conversation (new, live, history): a centered column, the message box at the bottom */
|
|
122
|
+
.chat-page { display: flex; flex-direction: column; height: 100%; min-height: 0; }
|
|
123
|
+
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 24px 12px; border-bottom: 1px solid var(--line); }
|
|
124
|
+
.chat-titles { flex: 1; min-width: 0; }
|
|
125
|
+
.chat-titles h2 { font-size: 17px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
126
|
+
.chat-sub { color: var(--muted); font-size: 12px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
|
|
127
|
+
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; }
|
|
128
|
+
.chat-log { max-width: 860px; margin: 0 auto; padding: 22px 28px 30px; display: grid; gap: 14px; }
|
|
129
|
+
.chat-empty { color: var(--faint); text-align: center; padding: 60px 0; }
|
|
130
|
+
.chat-foot { padding: 0 24px 10px; }
|
|
131
|
+
.chat-foot > * { max-width: 860px; margin-left: auto; margin-right: auto; }
|
|
132
|
+
.chat-extra { display: grid; gap: 8px; margin-bottom: 8px; }
|
|
133
|
+
.chat-extra:empty { display: none; }
|
|
134
|
+
.chat-composer { max-width: 860px; margin: 0 auto; width: 100%; }
|
|
135
|
+
.chat-stats { color: var(--faint); font-size: 12px; text-align: center; padding-top: 7px; min-height: 18px; }
|
|
136
|
+
.status-line { font-family: var(--mono); font-size: 12.5px; color: var(--muted); min-height: 0; padding: 0 6px 6px; }
|
|
137
|
+
.status-line:empty { padding: 0; }
|
|
138
|
+
.status-line .work { color: var(--accent-text); }
|
|
139
|
+
.welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 24px 26px; text-align: center; }
|
|
140
|
+
.welcome h1 { font-size: 26px; }
|
|
141
|
+
.welcome p { margin: 0; max-width: 520px; font-size: 13.5px; }
|
|
142
|
+
.welcome-logo { width: 48px; height: 48px; border-radius: 13px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 24px; }
|
|
143
|
+
.chat-page > .chat-composer { flex: 1; padding: 0 24px; }
|
|
144
|
+
.composer { border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); box-shadow: 0 2px 10px rgba(16, 24, 40, .06); padding: 12px 12px 8px 16px; display: grid; gap: 6px; }
|
|
145
|
+
.composer:focus-within { border-color: var(--accent); }
|
|
146
|
+
.dropping .composer { border-color: var(--accent); border-style: dashed; }
|
|
147
|
+
.composer textarea { border: 0; padding: 4px 0; box-shadow: none !important; background: transparent; resize: none; min-height: 28px; max-height: 240px; font-size: 14.5px; line-height: 1.6; }
|
|
148
|
+
.composer-bar { display: flex; align-items: center; gap: 6px; }
|
|
149
|
+
.composer-bar .grow { flex: 1; }
|
|
150
|
+
.composer-bar .icon-btn { border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; }
|
|
151
|
+
.chip { display: inline-flex; align-items: center; gap: 5px; max-width: 280px; padding: 5px 10px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
|
|
152
|
+
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
153
|
+
.chip:hover { background: var(--hover); color: var(--text); }
|
|
154
|
+
.chip[hidden] { display: none; }
|
|
155
|
+
.round-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; flex: none; }
|
|
156
|
+
.round-btn:hover { background: var(--accent-hover); }
|
|
157
|
+
.round-btn:disabled { opacity: .4; cursor: default; }
|
|
158
|
+
.round-btn.stop { background: var(--text); }
|
|
159
|
+
.pop { position: fixed; z-index: 70; min-width: 220px; max-width: 380px; max-height: 60vh; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
|
|
160
|
+
.pop-head { padding: 6px 10px 3px; color: var(--faint); font-size: 11.5px; }
|
|
161
|
+
.pop-head:empty { display: none; }
|
|
162
|
+
.pop button { display: grid; width: 100%; padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
|
|
163
|
+
.pop button:hover { background: var(--hover); }
|
|
164
|
+
.pop button.current { color: var(--accent-text); font-weight: 600; }
|
|
165
|
+
.pop button.danger { color: var(--danger); }
|
|
166
|
+
.pop small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
167
|
+
|
|
168
|
+
/* parts */
|
|
169
|
+
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
|
|
170
|
+
.panel-pad { padding: 16px 18px; }
|
|
171
|
+
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
|
|
172
|
+
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
|
|
173
|
+
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
|
|
174
|
+
.stat { padding: 14px 16px; }
|
|
175
|
+
a.panel { color: inherit; }
|
|
176
|
+
a.panel:hover { text-decoration: none; border-color: var(--accent); }
|
|
177
|
+
.stat .label { color: var(--muted); font-size: 12.5px; }
|
|
178
|
+
.stat .value { font-size: 22px; font-weight: 700; margin-top: 2px; }
|
|
179
|
+
.stat .hint { color: var(--faint); font-size: 12px; margin-top: 2px; word-break: break-all; }
|
|
180
|
+
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13px; }
|
|
181
|
+
.kv dt { color: var(--muted); }
|
|
182
|
+
.kv dd { margin: 0; word-break: break-all; }
|
|
183
|
+
.button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
|
|
184
|
+
.button:hover { background: var(--accent-hover); }
|
|
185
|
+
.button.secondary { background: var(--surface); color: var(--text-2); border-color: var(--line-strong); }
|
|
186
|
+
.button.secondary:hover { background: var(--surface-2); color: var(--text); }
|
|
187
|
+
.button.danger { background: var(--surface); color: var(--danger); border-color: var(--line-strong); }
|
|
188
|
+
.button.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
|
|
189
|
+
.button.small { padding: 4px 10px; font-size: 12.5px; }
|
|
190
|
+
.button:disabled { opacity: .5; cursor: not-allowed; }
|
|
191
|
+
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
|
|
192
|
+
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; outline: none; }
|
|
193
|
+
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
194
|
+
textarea { width: 100%; resize: vertical; }
|
|
195
|
+
label.field { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
|
|
196
|
+
label.field small { color: var(--muted); }
|
|
197
|
+
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line); }
|
|
198
|
+
.pill[hidden] { display: none; }
|
|
199
|
+
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
|
|
200
|
+
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
|
|
201
|
+
.pill.off { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
|
|
202
|
+
.pill.accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
|
|
203
|
+
.muted { color: var(--muted); }
|
|
204
|
+
.faint { color: var(--faint); }
|
|
205
|
+
.empty { padding: 40px 20px; text-align: center; color: var(--faint); }
|
|
206
|
+
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
|
|
207
|
+
.toolbar input[type="search"] { flex: 1; min-width: 220px; }
|
|
208
|
+
select { max-width: 100%; } /* (a select is as wide as its longest option: a long project path) */
|
|
209
|
+
.file-row .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
|
|
210
|
+
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
|
|
211
|
+
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
|
|
212
|
+
.tabs a.active { color: var(--accent-text); border-color: var(--accent); }
|
|
213
|
+
.tabs a:hover { text-decoration: none; color: var(--text); }
|
|
214
|
+
|
|
215
|
+
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
216
|
+
table.list th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
|
|
217
|
+
table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
|
|
218
|
+
table.list tr:last-child td { border-bottom: 0; }
|
|
219
|
+
table.list tr.click { cursor: pointer; }
|
|
220
|
+
table.list tr.click:hover td { background: var(--surface-2); }
|
|
221
|
+
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
222
|
+
.title-cell strong { display: block; font-weight: 600; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
223
|
+
.title-cell .path { color: var(--faint); font-family: var(--mono); font-size: 11.5px; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
224
|
+
|
|
225
|
+
/* toast and modal */
|
|
226
|
+
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; padding: 10px 16px; border-radius: 8px; background: var(--text); color: var(--surface); font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: 480px; }
|
|
227
|
+
.toast.error { background: var(--danger); color: #fff; }
|
|
228
|
+
.modal-back { position: fixed; inset: 0; z-index: 40; background: rgba(15, 17, 21, .45); display: grid; place-items: center; padding: 20px; }
|
|
229
|
+
.modal { width: min(760px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
|
|
230
|
+
.modal.big { width: min(1100px, 100%); height: calc(100vh - 40px); }
|
|
231
|
+
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
|
|
232
|
+
.modal-head .path { color: var(--faint); font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
|
|
233
|
+
.modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
|
|
234
|
+
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
|
|
235
|
+
.editor { width: 100%; height: 100%; min-height: 360px; font-family: var(--mono); font-size: 13px; line-height: 1.55; resize: none; tab-size: 2; }
|
|
236
|
+
.modal.big .modal-body { display: flex; }
|
|
237
|
+
.modal-error { color: var(--danger); font-size: 13px; margin-right: auto; align-self: center; }
|
|
238
|
+
|
|
239
|
+
/* providers */
|
|
240
|
+
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
|
|
241
|
+
.prov { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
|
|
242
|
+
.prov > .actions { margin-top: auto; }
|
|
243
|
+
.prov.connected { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
|
|
244
|
+
.prov-top { display: flex; align-items: center; gap: 8px; }
|
|
245
|
+
.prov-top strong { flex: 1; }
|
|
246
|
+
.prov .meta { color: var(--muted); font-size: 12px; word-break: break-all; }
|
|
247
|
+
.model-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
|
|
248
|
+
.model-list label { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
|
|
249
|
+
.model-list label:last-child { border-bottom: 0; }
|
|
250
|
+
.model-list label:hover { background: var(--surface-2); }
|
|
251
|
+
.model-list small { color: var(--muted); margin-left: auto; white-space: nowrap; }
|
|
252
|
+
|
|
253
|
+
/* settings */
|
|
254
|
+
.setting { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
|
|
255
|
+
.setting:last-child { border-bottom: 0; }
|
|
256
|
+
.setting .key { font-family: var(--mono); font-size: 12.5px; font-weight: 600; word-break: break-all; }
|
|
257
|
+
.setting .desc { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
|
|
258
|
+
.setting .now { font-size: 13px; margin-bottom: 8px; word-break: break-all; }
|
|
259
|
+
.setting .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
|
|
260
|
+
.setting .row input, .setting .row select { min-width: 220px; flex: 1; max-width: 420px; }
|
|
261
|
+
|
|
262
|
+
/* memory and extensions */
|
|
263
|
+
.file-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
|
|
264
|
+
.file-row:last-child { border-bottom: 0; }
|
|
265
|
+
.file-row .name { font-family: var(--mono); font-size: 12.5px; }
|
|
266
|
+
.file-row .desc { color: var(--muted); font-size: 12.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
267
|
+
.file-row .grow { flex: 1; }
|
|
268
|
+
details.proj { border-bottom: 1px solid var(--line); }
|
|
269
|
+
details.proj:last-child { border-bottom: 0; }
|
|
270
|
+
details.proj > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
|
|
271
|
+
details.proj > summary::-webkit-details-marker { display: none; }
|
|
272
|
+
details.proj > summary:hover { background: var(--surface-2); }
|
|
273
|
+
details.proj > div { padding: 0 0 6px 18px; }
|
|
274
|
+
|
|
275
|
+
/* usage chart */
|
|
276
|
+
.chart { width: 100%; height: 220px; display: block; }
|
|
277
|
+
.chart .bar { fill: var(--accent); }
|
|
278
|
+
.chart .bar:hover { fill: var(--accent-hover); }
|
|
279
|
+
.chart text { fill: var(--muted); font-size: 10px; }
|
|
280
|
+
.chart line { stroke: var(--line); }
|
|
281
|
+
|
|
282
|
+
/* transcript (history and live) */
|
|
283
|
+
.convo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
|
|
284
|
+
.convo-head .path { color: var(--muted); font-family: var(--mono); font-size: 12px; word-break: break-all; }
|
|
285
|
+
.log { background: var(--term-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 12px; }
|
|
286
|
+
.it { min-width: 0; }
|
|
287
|
+
.it-user { justify-self: end; max-width: 82%; }
|
|
288
|
+
.it-user .bubble { background: var(--bubble); color: var(--text); padding: 9px 15px; border-radius: 18px; white-space: pre-wrap; word-break: break-word; }
|
|
289
|
+
.it-text { display: flex; gap: 8px; }
|
|
290
|
+
.it-text .mark { color: var(--text); flex: none; line-height: 1.7; }
|
|
291
|
+
.md { min-width: 0; flex: 1; word-break: break-word; }
|
|
292
|
+
.md p { margin: 0 0 8px; }
|
|
293
|
+
.md p:last-child { margin-bottom: 0; }
|
|
294
|
+
.md h1, .md h2, .md h3, .md h4 { margin: 12px 0 6px; font-size: 14.5px; }
|
|
295
|
+
.md pre { background: var(--code-bg); padding: 10px 12px; border-radius: 8px; overflow-x: auto; margin: 6px 0; white-space: pre; }
|
|
296
|
+
.md table { border-collapse: collapse; margin: 6px 0; font-size: 13px; }
|
|
297
|
+
.md th, .md td { border: 1px solid var(--line); padding: 4px 9px; text-align: left; }
|
|
298
|
+
.md th { background: var(--surface-2); }
|
|
299
|
+
.md blockquote { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--line-strong); color: var(--muted); }
|
|
300
|
+
.md .li { display: flex; gap: 6px; }
|
|
301
|
+
.md .bullet { color: var(--muted); flex: none; }
|
|
302
|
+
.it-thinking details summary, .it-summary details summary { cursor: pointer; color: var(--muted); font-style: italic; font-size: 13px; }
|
|
303
|
+
.it-thinking .pre { white-space: pre-wrap; color: var(--muted); font-style: italic; font-size: 13px; padding: 6px 0 0 14px; }
|
|
304
|
+
.it-tool { font-family: var(--mono); font-size: 12.5px; }
|
|
305
|
+
.it-tool .head { display: flex; gap: 8px; align-items: baseline; }
|
|
306
|
+
.it-tool .head > :not(.dot) { min-width: 0; overflow-wrap: anywhere; } /* (a long command wraps instead of widening the log) */
|
|
307
|
+
.it-tool .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; transform: translateY(-1px); }
|
|
308
|
+
.it-tool.error .dot { background: var(--danger); }
|
|
309
|
+
.it-tool.running .dot { background: var(--faint); animation: blink 1s infinite; }
|
|
310
|
+
@keyframes blink { 50% { opacity: .2; } }
|
|
311
|
+
.it-tool pre, .it-output pre { margin: 4px 0 0 16px; white-space: pre-wrap; word-break: break-all; color: var(--text-2); }
|
|
312
|
+
.fold { position: relative; }
|
|
313
|
+
.fold:not(.open) pre { max-height: calc(5 * 1.55em); overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
|
|
314
|
+
.fold-btn { margin: 4px 0 0 16px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--muted); font: 12px/1.4 system-ui, sans-serif; cursor: pointer; }
|
|
315
|
+
.fold-btn:hover { color: var(--text); border-color: var(--accent); }
|
|
316
|
+
.a-add { background: var(--diff-add-bg); color: var(--diff-add-fg); }
|
|
317
|
+
.a-del { background: var(--diff-del-bg); color: var(--diff-del-fg); }
|
|
318
|
+
.a-add.a-word { background: var(--diff-add-word); }
|
|
319
|
+
.a-del.a-word { background: var(--diff-del-word); }
|
|
320
|
+
.a-bg { background: var(--surface-2); }
|
|
321
|
+
.it-tool .more { margin-left: auto; font-family: inherit; font-size: 12px; background: none; border: 0; color: var(--accent-text); cursor: pointer; }
|
|
322
|
+
.it-tool details > summary { cursor: pointer; list-style: none; }
|
|
323
|
+
.it-tool details > summary::-webkit-details-marker { display: none; }
|
|
324
|
+
.it-image img { max-width: 420px; max-height: 320px; border-radius: 8px; border: 1px solid var(--line); justify-self: end; }
|
|
325
|
+
.it-image { justify-self: end; }
|
|
326
|
+
.it-image img, .thumb img { cursor: zoom-in; }
|
|
327
|
+
.zoom { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(10, 12, 16, .82); cursor: zoom-out; animation: zoom-in .12s ease; }
|
|
328
|
+
.zoom img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
|
|
329
|
+
.zoom-close { position: fixed; top: 14px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; cursor: pointer; }
|
|
330
|
+
.zoom-close:hover { background: rgba(255,255,255,.28); }
|
|
331
|
+
@keyframes zoom-in { from { opacity: 0; } }
|
|
332
|
+
.a-b { font-weight: 700; } .a-d { opacity: .65; } .a-i { font-style: italic; } .a-u { text-decoration: underline; } .a-s { text-decoration: line-through; }
|
|
333
|
+
|
|
334
|
+
/* live */
|
|
335
|
+
.status-line { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
|
|
336
|
+
.status-line .work { color: var(--accent-text); }
|
|
337
|
+
.todos { font-size: 13px; }
|
|
338
|
+
.todos .now { font-weight: 600; } .todos .done { color: var(--faint); text-decoration: line-through; }
|
|
339
|
+
.dialog-box { max-height: 45vh; overflow-y: auto; border: 1px solid var(--warn); border-radius: var(--radius); padding: 12px 14px; background: var(--warn-soft); display: grid; gap: 8px; }
|
|
340
|
+
.dialog-box .opts { display: grid; gap: 6px; }
|
|
341
|
+
.dialog-box .opt { text-align: left; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); cursor: pointer; font: inherit; color: var(--text); }
|
|
342
|
+
.dialog-box .opt:hover { border-color: var(--accent); }
|
|
343
|
+
.dialog-box .desc { color: var(--muted); font-size: 12px; }
|
|
344
|
+
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
345
|
+
.thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
|
|
346
|
+
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
347
|
+
.thumb button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 20px; padding: 0; cursor: pointer; }
|
|
348
|
+
.dot-state { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
|
|
349
|
+
.dot-state.busy { background: var(--warn); animation: blink 1s infinite; }
|
|
350
|
+
.dot-state.ask { background: var(--danger); }
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
.mobile-menu, .side-backdrop { display: none; }
|
|
354
|
+
.remote-links { display: flex; gap: 8px; padding: 8px 6px 0; }
|
|
355
|
+
.remote-links a, .remote-links button { flex: 1; text-align: center; padding: 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
|
|
356
|
+
.remote-links a:hover, .remote-links button:hover { text-decoration: none; border-color: var(--accent); }
|
|
357
|
+
@media (max-width: 860px) {
|
|
358
|
+
/* a phone (远程访问): the sidebar is a drawer (☰), the conversation takes the screen. --visible-height is the
|
|
359
|
+
visual viewport (app.js syncVisualHeight): the message box stays above the on-screen keyboard */
|
|
360
|
+
html, body { overflow: hidden; overscroll-behavior: none; }
|
|
361
|
+
.app { grid-template-columns: 1fr; height: var(--visible-height, 100dvh); }
|
|
362
|
+
.side { position: fixed; z-index: 45; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); padding: max(14px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.2); }
|
|
363
|
+
.app.nav-open .side { transform: none; }
|
|
364
|
+
.app.nav-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(0,0,0,.35); }
|
|
365
|
+
.mobile-menu { display: grid; place-items: center; position: fixed; z-index: 40; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 18px; box-shadow: var(--shadow); }
|
|
366
|
+
.drawer-close { display: grid !important; }
|
|
367
|
+
.chat-head { padding-left: 60px !important; padding-top: max(14px, env(safe-area-inset-top)); }
|
|
368
|
+
.welcome h1 { font-size: 21px; }
|
|
369
|
+
.welcome { padding-top: 60px; }
|
|
370
|
+
input, select, textarea, .composer textarea { font-size: 16px; } /* (no zoom on focus in iOS) */
|
|
371
|
+
.composer textarea { max-height: min(240px, 30dvh); }
|
|
372
|
+
.page:not(.chat) { padding: 64px 14px 40px; }
|
|
373
|
+
.setting { grid-template-columns: 1fr; }
|
|
374
|
+
.kv { grid-template-columns: 1fr; gap: 2px 0; }
|
|
375
|
+
.kv dd { margin-bottom: 8px; }
|
|
376
|
+
.chat-log { padding: 16px 14px; }
|
|
377
|
+
.chat-foot, .chat-head { padding-left: 12px; padding-right: 12px; }
|
|
378
|
+
.chat-foot { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
|
|
379
|
+
.chat-page > .chat-composer { padding: 0 12px max(12px, env(safe-area-inset-bottom)); }
|
|
380
|
+
/* the model and effort chips on a row of their own under the box: the send button stays on screen */
|
|
381
|
+
.composer-bar { flex-wrap: wrap; row-gap: 4px; }
|
|
382
|
+
.composer-right:not(:empty) { order: 10; flex-basis: 100%; flex-wrap: wrap; }
|
|
383
|
+
.composer-left { flex: 0 1 auto; }
|
|
384
|
+
.chip { max-width: min(46vw, 220px); }
|
|
385
|
+
/* touch: bigger targets, the row menus always shown (no hover) */
|
|
386
|
+
.ws-item { padding-top: 10px; padding-bottom: 10px; }
|
|
387
|
+
.ws-folder { padding-top: 9px; padding-bottom: 9px; }
|
|
388
|
+
.ws-tools button, .ws-tools a { width: 34px; height: 34px; }
|
|
389
|
+
.ws-menu, .ws-pmenu, .ws-add { width: 32px; height: 32px; opacity: 1; pointer-events: auto; }
|
|
390
|
+
.ws-pmenu { right: 40px; }
|
|
391
|
+
.ws-row.has-menu .ws-item { padding-right: 42px; }
|
|
392
|
+
.ws-row.has-menu .ws-ago { display: none; }
|
|
393
|
+
.ws-folder-row .ws-count { margin-right: 70px; }
|
|
394
|
+
.ws-folder { padding-right: 78px; } /* (the always-shown ⋯ and + sit over the end of the row) */
|
|
395
|
+
.tip { display: none !important; }
|
|
396
|
+
.pop { max-width: calc(100vw - 16px); max-height: 60dvh; }
|
|
397
|
+
.pop button { padding: 10px 12px; }
|
|
398
|
+
.icon-btn { width: 36px; height: 36px; }
|
|
399
|
+
/* content wider than the screen scrolls in its own box, not the page */
|
|
400
|
+
.panel { overflow-x: auto; }
|
|
401
|
+
.title-cell strong, .title-cell .path { max-width: 62vw; }
|
|
402
|
+
.md table { display: block; max-width: 100%; overflow-x: auto; }
|
|
403
|
+
.it-user { max-width: 92%; }
|
|
404
|
+
.it-image img { max-width: 100%; height: auto; }
|
|
405
|
+
.toolbar input[type="search"] { min-width: 0; flex-basis: 100%; }
|
|
406
|
+
.modal-back { padding: 0; place-items: end stretch; grid-template-columns: minmax(0, 1fr); }
|
|
407
|
+
.modal { width: 100%; min-width: 0; max-height: var(--visible-height, 100dvh); border-radius: 14px 14px 0 0; }
|
|
408
|
+
.modal.big { height: var(--visible-height, 100dvh); border-radius: 0; }
|
|
409
|
+
.modal-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
|
|
410
|
+
.toast { left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: none; }
|
|
411
|
+
.zoom { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
|
|
412
|
+
}
|