zero-db-tool 0.0.0-stage → 1.0.1
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/LICENSE +28 -0
- package/README.md +86 -2
- package/assets/icon.png +0 -0
- package/client/client.js +543 -0
- package/client/src/AntdWorkbench.tsx +632 -0
- package/client/src/DatabaseConnectionsPage.tsx +455 -0
- package/client/src/api.ts +71 -0
- package/client/src/base.css +82 -0
- package/client/src/console-shim.ts +5 -0
- package/client/src/database-workbench.css +905 -0
- package/client/src/icons.tsx +33 -0
- package/client/src/main.tsx +83 -0
- package/client/src/text.d.ts +4 -0
- package/client/src/theme-fixes.css +29 -0
- package/client/src/theme.ts +25 -0
- package/client/src/workbench.css +156 -0
- package/cordis.patch.yml +4 -0
- package/dist/connections.js +909 -0
- package/dist/http.js +215 -0
- package/dist/index.js +77 -0
- package/dist/manager.js +193 -0
- package/dist/plugin-types.js +1 -0
- package/dist/sql-guard.js +239 -0
- package/dist/tools.js +229 -0
- package/package.json +63 -4
|
@@ -0,0 +1,905 @@
|
|
|
1
|
+
/* 鈥斺€?Database connections management page 鈥斺€?*/
|
|
2
|
+
.oc-details-rail-body:has(.database-connections-page) {
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.database-connections-page {
|
|
7
|
+
container-type: inline-size;
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: minmax(0, 1fr);
|
|
10
|
+
align-content: start;
|
|
11
|
+
flex: 1 1 auto;
|
|
12
|
+
min-height: 0;
|
|
13
|
+
height: 100%;
|
|
14
|
+
gap: 12px;
|
|
15
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
16
|
+
overflow-x: hidden;
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
overscroll-behavior: contain;
|
|
19
|
+
scrollbar-gutter: stable;
|
|
20
|
+
padding-bottom: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.database-connections-header {
|
|
24
|
+
grid-column: 1 / -1;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: flex-start;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
gap: var(--space-4);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.database-connections-header {
|
|
32
|
+
padding: 18px;
|
|
33
|
+
border: 1px solid var(--hairline);
|
|
34
|
+
border-radius: 14px;
|
|
35
|
+
background: linear-gradient(135deg, var(--surface) 20%, color-mix(in srgb, var(--canvas-soft) 78%, var(--surface)));
|
|
36
|
+
box-shadow: 0 4px 18px rgb(38 37 30 / 5%);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.database-connections-header > div:first-child { min-width: 0; }
|
|
40
|
+
|
|
41
|
+
.database-connections-header p {
|
|
42
|
+
margin: 3px 0 0;
|
|
43
|
+
color: var(--muted);
|
|
44
|
+
font-size: 12px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.database-header-actions {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex: 0 0 auto;
|
|
50
|
+
flex-wrap: wrap;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: flex-end;
|
|
53
|
+
gap: 8px;
|
|
54
|
+
}
|
|
55
|
+
.database-header-actions select {
|
|
56
|
+
min-width: 118px;
|
|
57
|
+
min-height: 34px;
|
|
58
|
+
padding: 6px 9px;
|
|
59
|
+
border: 1px solid var(--hairline-strong);
|
|
60
|
+
border-radius: 9px;
|
|
61
|
+
color: var(--ink);
|
|
62
|
+
background: var(--surface);
|
|
63
|
+
}
|
|
64
|
+
.database-header-actions .btn { min-height: 34px; }
|
|
65
|
+
.database-header-actions .btn,
|
|
66
|
+
.database-active-actions .btn,
|
|
67
|
+
.database-query-panel-actions .btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; }
|
|
68
|
+
.database-header-actions .btn svg,
|
|
69
|
+
.database-active-actions .btn svg,
|
|
70
|
+
.database-query-panel-actions .btn svg { flex: none; }
|
|
71
|
+
|
|
72
|
+
.database-connections-header h2,
|
|
73
|
+
.database-connection-form h3,
|
|
74
|
+
.database-connection-list h3 {
|
|
75
|
+
margin: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.database-connection-form {
|
|
79
|
+
display: grid;
|
|
80
|
+
grid-template-columns: minmax(0, 1fr);
|
|
81
|
+
align-items: end;
|
|
82
|
+
gap: var(--space-3);
|
|
83
|
+
padding: var(--space-4);
|
|
84
|
+
border: 1px solid var(--hairline);
|
|
85
|
+
border-radius: var(--radius-md);
|
|
86
|
+
background: color-mix(in srgb, var(--surface) 55%, transparent);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.database-connection-form h3,
|
|
90
|
+
.database-connection-form .muted {
|
|
91
|
+
grid-column: 1 / -1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
.database-server-fields {
|
|
97
|
+
display: grid;
|
|
98
|
+
grid-template-columns: minmax(0, 1fr) 92px;
|
|
99
|
+
align-items: start;
|
|
100
|
+
gap: var(--space-2);
|
|
101
|
+
}
|
|
102
|
+
.database-server-fields > small {
|
|
103
|
+
grid-column: 1 / -1;
|
|
104
|
+
margin-top: -2px;
|
|
105
|
+
color: var(--muted);
|
|
106
|
+
font-size: 11px;
|
|
107
|
+
line-height: 1.45;
|
|
108
|
+
}
|
|
109
|
+
.database-port-field input {
|
|
110
|
+
text-align: center;
|
|
111
|
+
}
|
|
112
|
+
.database-add-submit {
|
|
113
|
+
min-height: 40px;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.database-connection-form label > small {
|
|
118
|
+
display: block;
|
|
119
|
+
margin-top: 4px;
|
|
120
|
+
color: var(--muted);
|
|
121
|
+
font-size: 11px;
|
|
122
|
+
font-weight: 400;
|
|
123
|
+
line-height: 1.45;
|
|
124
|
+
}
|
|
125
|
+
.database-connection-mode,
|
|
126
|
+
.database-password-mode {
|
|
127
|
+
display: grid;
|
|
128
|
+
gap: 7px;
|
|
129
|
+
margin: 0;
|
|
130
|
+
padding: 10px;
|
|
131
|
+
border: 1px solid var(--hairline);
|
|
132
|
+
border-radius: var(--radius-sm);
|
|
133
|
+
}
|
|
134
|
+
.database-connection-mode legend,
|
|
135
|
+
.database-password-mode legend {
|
|
136
|
+
padding: 0 4px;
|
|
137
|
+
color: var(--ink);
|
|
138
|
+
font-size: var(--text-sm);
|
|
139
|
+
font-weight: 650;
|
|
140
|
+
}
|
|
141
|
+
.database-radio,
|
|
142
|
+
.database-checkbox {
|
|
143
|
+
display: grid !important;
|
|
144
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
145
|
+
align-items: start !important;
|
|
146
|
+
gap: 7px !important;
|
|
147
|
+
font-weight: 500 !important;
|
|
148
|
+
}
|
|
149
|
+
.database-radio input,
|
|
150
|
+
.database-checkbox input {
|
|
151
|
+
width: auto !important;
|
|
152
|
+
min-height: auto !important;
|
|
153
|
+
margin-top: 2px;
|
|
154
|
+
}
|
|
155
|
+
.database-checkbox small {
|
|
156
|
+
grid-column: 2;
|
|
157
|
+
}
|
|
158
|
+
.database-form-security-note {
|
|
159
|
+
display: grid;
|
|
160
|
+
gap: 3px;
|
|
161
|
+
padding: 10px;
|
|
162
|
+
border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--hairline));
|
|
163
|
+
border-radius: var(--radius-sm);
|
|
164
|
+
background: color-mix(in srgb, var(--accent) 5%, var(--surface));
|
|
165
|
+
color: var(--muted);
|
|
166
|
+
font-size: 11px;
|
|
167
|
+
line-height: 1.5;
|
|
168
|
+
}
|
|
169
|
+
.database-form-security-note strong { color: var(--ink); font-size: var(--text-sm); }
|
|
170
|
+
.field-required { color: var(--red); font-size: 11px; font-weight: 500; }
|
|
171
|
+
.field-optional { color: var(--muted); font-size: 11px; font-weight: 400; }
|
|
172
|
+
|
|
173
|
+
.database-connection-form label {
|
|
174
|
+
display: grid;
|
|
175
|
+
gap: var(--space-1);
|
|
176
|
+
color: var(--body);
|
|
177
|
+
font-size: var(--text-sm);
|
|
178
|
+
font-weight: 600;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.database-connection-form input,
|
|
182
|
+
.database-connection-form select {
|
|
183
|
+
width: 100%;
|
|
184
|
+
min-height: 38px;
|
|
185
|
+
padding: 7px 10px;
|
|
186
|
+
border: 1px solid var(--hairline-strong);
|
|
187
|
+
border-radius: var(--radius-sm);
|
|
188
|
+
background: var(--surface);
|
|
189
|
+
color: var(--ink);
|
|
190
|
+
font: inherit;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
.database-connection-toolbar {
|
|
195
|
+
grid-column: 1 / -1;
|
|
196
|
+
display: flex;
|
|
197
|
+
flex-wrap: wrap;
|
|
198
|
+
align-items: center;
|
|
199
|
+
gap: var(--space-2);
|
|
200
|
+
}
|
|
201
|
+
.database-connection-toolbar input,
|
|
202
|
+
.database-connection-toolbar select {
|
|
203
|
+
min-width: 0;
|
|
204
|
+
min-height: 34px;
|
|
205
|
+
padding: 6px 8px;
|
|
206
|
+
border: 1px solid var(--hairline-strong);
|
|
207
|
+
border-radius: var(--radius-sm);
|
|
208
|
+
background: var(--surface);
|
|
209
|
+
color: var(--ink);
|
|
210
|
+
font: inherit;
|
|
211
|
+
font-size: var(--text-sm);
|
|
212
|
+
}
|
|
213
|
+
.database-connection-toolbar input[type="search"] { flex: 1 1 100%; }
|
|
214
|
+
.database-connection-toolbar select { flex: 1 1 145px; }
|
|
215
|
+
.database-form-heading,
|
|
216
|
+
.database-list-heading {
|
|
217
|
+
display: flex;
|
|
218
|
+
align-items: center;
|
|
219
|
+
justify-content: space-between;
|
|
220
|
+
gap: var(--space-2);
|
|
221
|
+
}
|
|
222
|
+
.database-form-heading { grid-column: 1 / -1; }
|
|
223
|
+
.database-list-heading > span { color: var(--muted); font-size: var(--text-sm); }
|
|
224
|
+
.database-health {
|
|
225
|
+
margin: 0;
|
|
226
|
+
padding: 7px 9px;
|
|
227
|
+
border-radius: var(--radius-sm);
|
|
228
|
+
font-size: var(--text-sm);
|
|
229
|
+
overflow-wrap: anywhere;
|
|
230
|
+
}
|
|
231
|
+
.database-health.is-checking { background: var(--canvas-soft); color: var(--muted); }
|
|
232
|
+
.database-health.is-ok { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); }
|
|
233
|
+
.database-health.is-error { background: color-mix(in srgb, var(--red) 9%, transparent); color: var(--red); }
|
|
234
|
+
|
|
235
|
+
.database-connection-list {
|
|
236
|
+
display: grid;
|
|
237
|
+
gap: var(--space-3);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.database-connection-grid {
|
|
241
|
+
display: grid;
|
|
242
|
+
gap: 7px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.database-connection-card {
|
|
246
|
+
display: grid;
|
|
247
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
248
|
+
align-items: center;
|
|
249
|
+
gap: 6px 8px;
|
|
250
|
+
padding: 8px 9px;
|
|
251
|
+
border: 1px solid var(--hairline);
|
|
252
|
+
border-radius: var(--radius-md);
|
|
253
|
+
background: var(--surface);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.database-connection-select { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
|
|
257
|
+
.database-connection-select:disabled { cursor: default; }
|
|
258
|
+
.database-connection-identity { min-width: 0; display: grid; gap: 2px; }
|
|
259
|
+
.database-connection-identity strong, .database-connection-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
260
|
+
.database-connection-identity small { color: var(--muted); font-size: 11px; font-family: var(--font-mono); }
|
|
261
|
+
.database-connection-meta { display: flex; align-items: center; gap: 5px; }
|
|
262
|
+
.database-connection-state { font-size: 10px; white-space: nowrap; color: var(--muted); }
|
|
263
|
+
.database-connection-state.is-ok { color: var(--green); }
|
|
264
|
+
.database-connection-state.is-error { color: var(--red); }
|
|
265
|
+
.database-connection-inline-error { grid-column: 1 / -1; margin: 0; overflow: hidden; color: var(--red); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
|
|
266
|
+
|
|
267
|
+
.database-engine-badge {
|
|
268
|
+
padding: 3px 9px;
|
|
269
|
+
border-radius: var(--radius-pill);
|
|
270
|
+
background: color-mix(in srgb, var(--orange) 12%, var(--canvas-soft));
|
|
271
|
+
color: var(--orange-active);
|
|
272
|
+
font-size: 12px;
|
|
273
|
+
font-weight: 700;
|
|
274
|
+
text-transform: uppercase;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.database-connection-card dl {
|
|
278
|
+
display: grid;
|
|
279
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
280
|
+
gap: var(--space-2) var(--space-3);
|
|
281
|
+
margin: 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.database-connection-card dt { color: var(--muted); }
|
|
285
|
+
.database-connection-card dd { margin: 0; overflow-wrap: anywhere; }
|
|
286
|
+
.database-connection-actions { display: flex; gap: 4px; }
|
|
287
|
+
.database-connection-actions .btn { min-height: 26px; padding: 3px 6px; font-size: 10px; }
|
|
288
|
+
|
|
289
|
+
.database-data-browser {
|
|
290
|
+
display: flex;
|
|
291
|
+
flex: 1 1 auto;
|
|
292
|
+
min-height: 0;
|
|
293
|
+
flex-direction: column;
|
|
294
|
+
gap: 12px;
|
|
295
|
+
min-width: 0;
|
|
296
|
+
}
|
|
297
|
+
.database-workbench-toolbar {
|
|
298
|
+
display: flex;
|
|
299
|
+
flex-wrap: wrap;
|
|
300
|
+
align-items: flex-end;
|
|
301
|
+
gap: 10px;
|
|
302
|
+
padding: 8px 10px;
|
|
303
|
+
border: 1px solid var(--hairline);
|
|
304
|
+
border-radius: 10px;
|
|
305
|
+
background: linear-gradient(180deg, color-mix(in srgb, var(--canvas-soft) 70%, var(--surface)), var(--surface));
|
|
306
|
+
box-shadow: 0 1px 2px rgb(38 37 30 / 3%);
|
|
307
|
+
}
|
|
308
|
+
.database-workbench-toolbar label {
|
|
309
|
+
display: grid;
|
|
310
|
+
gap: 4px;
|
|
311
|
+
min-width: 0;
|
|
312
|
+
color: var(--muted);
|
|
313
|
+
font-size: 11px;
|
|
314
|
+
font-weight: 600;
|
|
315
|
+
}
|
|
316
|
+
.database-workbench-toolbar select {
|
|
317
|
+
width: 100%;
|
|
318
|
+
min-width: 0;
|
|
319
|
+
min-height: 34px;
|
|
320
|
+
padding: 6px 9px;
|
|
321
|
+
border: 1px solid var(--hairline-strong);
|
|
322
|
+
border-radius: 8px;
|
|
323
|
+
background: var(--surface);
|
|
324
|
+
color: var(--ink);
|
|
325
|
+
box-shadow: 0 1px 1px rgb(38 37 30 / 2%);
|
|
326
|
+
}
|
|
327
|
+
.database-mode-switch {
|
|
328
|
+
display: inline-flex;
|
|
329
|
+
flex: none;
|
|
330
|
+
padding: 3px;
|
|
331
|
+
border: 1px solid var(--hairline);
|
|
332
|
+
border-radius: 999px;
|
|
333
|
+
background: color-mix(in srgb, var(--canvas-soft) 76%, var(--surface));
|
|
334
|
+
}
|
|
335
|
+
.database-mode-switch > button {
|
|
336
|
+
min-height: 26px;
|
|
337
|
+
padding: 4px 12px;
|
|
338
|
+
border: 0;
|
|
339
|
+
border-radius: 7px;
|
|
340
|
+
background: transparent;
|
|
341
|
+
color: var(--muted);
|
|
342
|
+
font-size: 12px;
|
|
343
|
+
font-weight: 650;
|
|
344
|
+
border-radius: 999px;
|
|
345
|
+
cursor: pointer;
|
|
346
|
+
}
|
|
347
|
+
.database-mode-switch > button.is-active {
|
|
348
|
+
background: var(--surface);
|
|
349
|
+
color: var(--ink);
|
|
350
|
+
box-shadow: var(--shadow-sm);
|
|
351
|
+
}
|
|
352
|
+
.database-workbench-toolbar > label {
|
|
353
|
+
flex: 0 0 auto;
|
|
354
|
+
width: 180px;
|
|
355
|
+
}
|
|
356
|
+
.database-workbench-toolbar > .database-sql-table-select { width: 220px; }
|
|
357
|
+
.database-workbench-toolbar > .database-browser-page-size { width: 96px; }
|
|
358
|
+
.database-workbench-toolbar > .btn {
|
|
359
|
+
min-height: 30px;
|
|
360
|
+
padding: 5px 10px;
|
|
361
|
+
font-size: 12px;
|
|
362
|
+
}
|
|
363
|
+
.database-column-summary {
|
|
364
|
+
display: flex;
|
|
365
|
+
flex-wrap: wrap;
|
|
366
|
+
gap: 6px;
|
|
367
|
+
align-items: center;
|
|
368
|
+
color: var(--muted);
|
|
369
|
+
font-size: 11px;
|
|
370
|
+
}
|
|
371
|
+
.database-column-summary > span {
|
|
372
|
+
padding: 4px 7px;
|
|
373
|
+
border: 1px solid var(--hairline);
|
|
374
|
+
border-radius: var(--radius-pill);
|
|
375
|
+
background: var(--canvas-soft);
|
|
376
|
+
}
|
|
377
|
+
.database-data-table-wrap {
|
|
378
|
+
min-width: 0;
|
|
379
|
+
max-width: 100%;
|
|
380
|
+
overflow-x: auto;
|
|
381
|
+
max-height: min(52vh, 460px);
|
|
382
|
+
border: 1px solid var(--hairline);
|
|
383
|
+
border-radius: 10px;
|
|
384
|
+
background: var(--surface);
|
|
385
|
+
}
|
|
386
|
+
.database-data-table {
|
|
387
|
+
width: max-content;
|
|
388
|
+
min-width: 100%;
|
|
389
|
+
border-collapse: collapse;
|
|
390
|
+
font-size: 12px;
|
|
391
|
+
}
|
|
392
|
+
.database-data-table th,
|
|
393
|
+
.database-data-table td {
|
|
394
|
+
max-width: 240px;
|
|
395
|
+
padding: 7px 9px;
|
|
396
|
+
overflow: hidden;
|
|
397
|
+
border-right: 1px solid var(--hairline);
|
|
398
|
+
border-bottom: 1px solid var(--hairline);
|
|
399
|
+
text-align: left;
|
|
400
|
+
text-overflow: ellipsis;
|
|
401
|
+
white-space: nowrap;
|
|
402
|
+
}
|
|
403
|
+
.database-data-table th {
|
|
404
|
+
position: sticky;
|
|
405
|
+
top: 0;
|
|
406
|
+
z-index: 1;
|
|
407
|
+
background: var(--canvas-soft);
|
|
408
|
+
color: var(--ink);
|
|
409
|
+
font-weight: 700;
|
|
410
|
+
}
|
|
411
|
+
.database-data-table tbody tr:nth-child(even) {
|
|
412
|
+
background: color-mix(in srgb, var(--canvas-soft) 34%, transparent);
|
|
413
|
+
}
|
|
414
|
+
.database-data-table tbody tr:hover {
|
|
415
|
+
background: color-mix(in srgb, var(--accent) 7%, transparent);
|
|
416
|
+
}
|
|
417
|
+
.database-data-table td { color: var(--body); }
|
|
418
|
+
.database-data-table tr:last-child td { border-bottom: 0; }
|
|
419
|
+
.database-data-table th:last-child,
|
|
420
|
+
.database-data-table td:last-child { border-right: 0; }
|
|
421
|
+
.database-browser-pagination {
|
|
422
|
+
display: flex;
|
|
423
|
+
align-items: center;
|
|
424
|
+
justify-content: space-between;
|
|
425
|
+
gap: var(--space-2);
|
|
426
|
+
color: var(--muted);
|
|
427
|
+
font-size: 12px;
|
|
428
|
+
}
|
|
429
|
+
.database-browser-pagination > div {
|
|
430
|
+
display: flex;
|
|
431
|
+
gap: var(--space-2);
|
|
432
|
+
}
|
|
433
|
+
.database-connections-notice { color: var(--green); grid-column: 1 / -1; }
|
|
434
|
+
.database-workbench-shell {
|
|
435
|
+
grid-column: 1 / -1;
|
|
436
|
+
display: grid;
|
|
437
|
+
grid-template-columns: 230px minmax(0, 1fr);
|
|
438
|
+
grid-template-rows: minmax(0, 1fr);
|
|
439
|
+
min-height: 540px;
|
|
440
|
+
border: 1px solid var(--hairline);
|
|
441
|
+
border-radius: 14px;
|
|
442
|
+
overflow: hidden;
|
|
443
|
+
background: var(--surface);
|
|
444
|
+
box-shadow: 0 8px 30px rgb(38 37 30 / 8%);
|
|
445
|
+
}
|
|
446
|
+
.database-connection-rail {
|
|
447
|
+
min-width: 0;
|
|
448
|
+
min-height: 0;
|
|
449
|
+
display: grid;
|
|
450
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
451
|
+
gap: 10px;
|
|
452
|
+
padding: 14px 10px;
|
|
453
|
+
border-right: 1px solid var(--hairline);
|
|
454
|
+
background: linear-gradient(180deg, color-mix(in srgb, var(--canvas-soft) 78%, var(--surface)), color-mix(in srgb, var(--canvas-soft) 54%, var(--surface)));
|
|
455
|
+
}
|
|
456
|
+
.database-connection-rail-title {
|
|
457
|
+
display: grid;
|
|
458
|
+
gap: 2px;
|
|
459
|
+
padding: 0 8px 8px;
|
|
460
|
+
}
|
|
461
|
+
.database-connection-rail-title b { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
|
|
462
|
+
.database-connection-rail-title small { color: var(--muted); font-size: 11px; }
|
|
463
|
+
.database-connection-rail-list {
|
|
464
|
+
min-height: 0;
|
|
465
|
+
height: 100%;
|
|
466
|
+
overflow-y: auto;
|
|
467
|
+
display: grid;
|
|
468
|
+
align-content: start;
|
|
469
|
+
gap: 6px;
|
|
470
|
+
padding-right: 2px;
|
|
471
|
+
}
|
|
472
|
+
.database-connection-item {
|
|
473
|
+
display: grid;
|
|
474
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
475
|
+
align-items: center;
|
|
476
|
+
gap: 9px;
|
|
477
|
+
width: 100%;
|
|
478
|
+
min-height: 52px;
|
|
479
|
+
padding: 10px 11px;
|
|
480
|
+
border: 1px solid transparent;
|
|
481
|
+
border-radius: 10px;
|
|
482
|
+
background: transparent;
|
|
483
|
+
color: inherit;
|
|
484
|
+
text-align: left;
|
|
485
|
+
cursor: pointer;
|
|
486
|
+
}
|
|
487
|
+
.database-connection-item:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
|
|
488
|
+
.database-connection-item.is-active {
|
|
489
|
+
background: var(--surface);
|
|
490
|
+
border-color: var(--hairline);
|
|
491
|
+
box-shadow: 0 2px 8px rgb(38 37 30 / 7%);
|
|
492
|
+
}
|
|
493
|
+
.database-connection-item-identity { min-width: 0; display: grid; gap: 3px; }
|
|
494
|
+
.database-connection-item-identity strong,
|
|
495
|
+
.database-connection-item-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
496
|
+
.database-connection-item-identity strong { color: var(--ink); font-size: 13px; }
|
|
497
|
+
.database-connection-item-identity small { color: var(--muted); font-size: 11px; font-family: var(--font-mono); }
|
|
498
|
+
.database-connection-item i {
|
|
499
|
+
display: block;
|
|
500
|
+
flex: none;
|
|
501
|
+
width: 7px;
|
|
502
|
+
height: 7px;
|
|
503
|
+
border-radius: 50%;
|
|
504
|
+
background: color-mix(in srgb, var(--muted) 48%, transparent);
|
|
505
|
+
}
|
|
506
|
+
.database-connection-item i.is-ready {
|
|
507
|
+
background: var(--green);
|
|
508
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent);
|
|
509
|
+
}
|
|
510
|
+
.database-connection-item i.is-error { background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 12%, transparent); }
|
|
511
|
+
.database-connection-empty {
|
|
512
|
+
display: grid;
|
|
513
|
+
place-items: center;
|
|
514
|
+
align-content: center;
|
|
515
|
+
gap: 7px;
|
|
516
|
+
min-height: 180px;
|
|
517
|
+
color: var(--muted);
|
|
518
|
+
text-align: center;
|
|
519
|
+
}
|
|
520
|
+
.database-connection-empty strong { color: var(--ink); }
|
|
521
|
+
.database-connection-empty span { font-size: 12px; }
|
|
522
|
+
.database-workbench-main {
|
|
523
|
+
min-width: 0;
|
|
524
|
+
min-height: 0;
|
|
525
|
+
display: flex;
|
|
526
|
+
flex-direction: column;
|
|
527
|
+
gap: 14px;
|
|
528
|
+
padding: 18px;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.database-active-head {
|
|
532
|
+
position: sticky;
|
|
533
|
+
top: 0;
|
|
534
|
+
z-index: 5;
|
|
535
|
+
flex: none;
|
|
536
|
+
margin: -18px -18px 0;
|
|
537
|
+
padding-bottom: 16px;
|
|
538
|
+
padding-inline: 18px;
|
|
539
|
+
padding-top: 16px;
|
|
540
|
+
background: color-mix(in srgb, var(--surface) 94%, transparent);
|
|
541
|
+
backdrop-filter: blur(8px);
|
|
542
|
+
border-bottom: 1px solid var(--hairline);
|
|
543
|
+
}
|
|
544
|
+
.database-active-head h3 { margin: 0; }
|
|
545
|
+
.database-active-head p {
|
|
546
|
+
margin: 3px 0 0;
|
|
547
|
+
overflow: hidden;
|
|
548
|
+
color: var(--muted);
|
|
549
|
+
font-size: 12px;
|
|
550
|
+
text-overflow: ellipsis;
|
|
551
|
+
white-space: nowrap;
|
|
552
|
+
}
|
|
553
|
+
.database-profile-title {
|
|
554
|
+
display: flex;
|
|
555
|
+
flex-wrap: wrap;
|
|
556
|
+
align-items: center;
|
|
557
|
+
gap: 8px;
|
|
558
|
+
}
|
|
559
|
+
.database-profile-title h3 { font-size: 16px; }
|
|
560
|
+
.database-active-actions {
|
|
561
|
+
display: grid;
|
|
562
|
+
grid-template-columns: repeat(3, minmax(120px, 1fr));
|
|
563
|
+
gap: 10px;
|
|
564
|
+
width: 100%;
|
|
565
|
+
margin-top: 14px;
|
|
566
|
+
}
|
|
567
|
+
.database-active-actions .btn { justify-content: center; min-height: 38px; padding: 8px 10px; white-space: nowrap; }
|
|
568
|
+
.database-workbench-scroll {
|
|
569
|
+
min-width: 0;
|
|
570
|
+
min-height: 0;
|
|
571
|
+
flex: 1 1 auto;
|
|
572
|
+
display: flex;
|
|
573
|
+
flex-direction: column;
|
|
574
|
+
overflow-y: auto;
|
|
575
|
+
overscroll-behavior: contain;
|
|
576
|
+
padding-right: 2px;
|
|
577
|
+
}
|
|
578
|
+
.database-query-panel {
|
|
579
|
+
display: grid;
|
|
580
|
+
align-content: start;
|
|
581
|
+
gap: 12px;
|
|
582
|
+
min-width: 0;
|
|
583
|
+
min-height: 0;
|
|
584
|
+
flex: 1 1 auto;
|
|
585
|
+
max-height: none;
|
|
586
|
+
overflow-y: auto;
|
|
587
|
+
padding: 14px;
|
|
588
|
+
border: 1px solid var(--hairline);
|
|
589
|
+
border-radius: 10px;
|
|
590
|
+
background: linear-gradient(180deg, color-mix(in srgb, var(--canvas-soft) 58%, var(--surface)), var(--surface));
|
|
591
|
+
box-shadow: 0 4px 18px rgb(38 37 30 / 5%);
|
|
592
|
+
}
|
|
593
|
+
.database-sql-workbench {
|
|
594
|
+
min-width: 0;
|
|
595
|
+
min-height: 0;
|
|
596
|
+
flex: 1 1 auto;
|
|
597
|
+
display: flex;
|
|
598
|
+
flex-direction: column;
|
|
599
|
+
gap: 10px;
|
|
600
|
+
min-height: 520px;
|
|
601
|
+
}
|
|
602
|
+
.database-table-list {
|
|
603
|
+
min-width: 0;
|
|
604
|
+
min-height: 0;
|
|
605
|
+
display: grid;
|
|
606
|
+
grid-template-columns: minmax(0, 1fr) 220px;
|
|
607
|
+
grid-template-rows: 32px minmax(0, 1fr);
|
|
608
|
+
gap: 8px 12px;
|
|
609
|
+
max-height: 136px;
|
|
610
|
+
padding: 10px 12px;
|
|
611
|
+
border: 1px solid var(--hairline);
|
|
612
|
+
border-radius: 10px;
|
|
613
|
+
background: color-mix(in srgb, var(--canvas-soft) 48%, var(--surface));
|
|
614
|
+
box-shadow: 0 1px 3px rgb(38 37 30 / 4%);
|
|
615
|
+
}
|
|
616
|
+
.database-table-list-heading {
|
|
617
|
+
grid-column: 1;
|
|
618
|
+
grid-row: 1;
|
|
619
|
+
display: flex;
|
|
620
|
+
align-items: center;
|
|
621
|
+
justify-content: space-between;
|
|
622
|
+
gap: 8px;
|
|
623
|
+
min-width: 0;
|
|
624
|
+
padding: 0;
|
|
625
|
+
}
|
|
626
|
+
.database-table-list-heading > div {
|
|
627
|
+
min-width: 0;
|
|
628
|
+
display: flex;
|
|
629
|
+
align-items: center;
|
|
630
|
+
gap: 6px;
|
|
631
|
+
padding-left: 2px;
|
|
632
|
+
}
|
|
633
|
+
.database-table-list-heading strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
|
|
634
|
+
.database-table-list-heading span { flex: none; padding: 2px 6px; border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 10px; }
|
|
635
|
+
.database-table-list-heading .btn { min-height: 26px; padding: 3px 8px; font-size: 11px; }
|
|
636
|
+
.database-table-list > input {
|
|
637
|
+
grid-column: 2;
|
|
638
|
+
grid-row: 1;
|
|
639
|
+
min-width: 0;
|
|
640
|
+
min-height: 30px;
|
|
641
|
+
margin: 0;
|
|
642
|
+
padding: 5px 8px;
|
|
643
|
+
border: 1px solid var(--hairline-strong);
|
|
644
|
+
border-radius: 7px;
|
|
645
|
+
color: var(--ink);
|
|
646
|
+
background: var(--surface);
|
|
647
|
+
font-size: 12px;
|
|
648
|
+
}
|
|
649
|
+
.database-table-list-scroll {
|
|
650
|
+
grid-column: 1 / -1;
|
|
651
|
+
grid-row: 2;
|
|
652
|
+
min-height: 0;
|
|
653
|
+
display: grid;
|
|
654
|
+
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
|
|
655
|
+
align-content: start;
|
|
656
|
+
gap: 3px 5px;
|
|
657
|
+
max-height: 72px;
|
|
658
|
+
overflow: auto;
|
|
659
|
+
padding: 0;
|
|
660
|
+
}
|
|
661
|
+
.database-table-list-empty {
|
|
662
|
+
margin: 0;
|
|
663
|
+
padding: 12px 4px;
|
|
664
|
+
color: var(--muted);
|
|
665
|
+
font-size: 12px;
|
|
666
|
+
text-align: center;
|
|
667
|
+
}
|
|
668
|
+
.database-table-item {
|
|
669
|
+
min-width: 0;
|
|
670
|
+
display: grid;
|
|
671
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
672
|
+
gap: 8px;
|
|
673
|
+
align-items: center;
|
|
674
|
+
width: 100%;
|
|
675
|
+
max-width: none;
|
|
676
|
+
min-height: 32px;
|
|
677
|
+
padding: 4px 8px;
|
|
678
|
+
border: 0;
|
|
679
|
+
border-radius: 7px;
|
|
680
|
+
background: transparent;
|
|
681
|
+
color: inherit;
|
|
682
|
+
cursor: pointer;
|
|
683
|
+
text-align: left;
|
|
684
|
+
}
|
|
685
|
+
.database-table-item:hover,
|
|
686
|
+
.database-table-item.is-active {
|
|
687
|
+
background: color-mix(in srgb, var(--accent) 8%, transparent);
|
|
688
|
+
}
|
|
689
|
+
.database-table-item.is-active {
|
|
690
|
+
background: var(--surface);
|
|
691
|
+
box-shadow: inset 2px 0 0 var(--accent), 0 1px 3px rgb(38 37 30 / 6%);
|
|
692
|
+
}
|
|
693
|
+
.database-table-item > span {
|
|
694
|
+
min-width: 0;
|
|
695
|
+
overflow: hidden;
|
|
696
|
+
color: var(--ink);
|
|
697
|
+
font-size: 12px;
|
|
698
|
+
font-family: var(--font-mono);
|
|
699
|
+
font-weight: 500;
|
|
700
|
+
text-overflow: ellipsis;
|
|
701
|
+
white-space: nowrap;
|
|
702
|
+
}
|
|
703
|
+
.database-table-item > small {
|
|
704
|
+
flex: none;
|
|
705
|
+
padding: 1px 4px;
|
|
706
|
+
border-radius: 4px;
|
|
707
|
+
color: var(--muted);
|
|
708
|
+
background: color-mix(in srgb, var(--surface) 72%, transparent);
|
|
709
|
+
font-family: var(--font-mono);
|
|
710
|
+
font-size: 9px;
|
|
711
|
+
line-height: 1.35;
|
|
712
|
+
}
|
|
713
|
+
.database-query-panel textarea {
|
|
714
|
+
min-height: 188px;
|
|
715
|
+
width: 100%;
|
|
716
|
+
resize: vertical;
|
|
717
|
+
padding: 12px 14px;
|
|
718
|
+
border: 1px solid var(--hairline-strong);
|
|
719
|
+
border-radius: 9px;
|
|
720
|
+
background: #111827;
|
|
721
|
+
color: #e5e7eb;
|
|
722
|
+
font-family: var(--font-mono);
|
|
723
|
+
font-size: 12px;
|
|
724
|
+
line-height: 1.6;
|
|
725
|
+
}
|
|
726
|
+
.database-query-panel textarea:focus {
|
|
727
|
+
border-color: #38bdf8;
|
|
728
|
+
outline: 2px solid rgb(56 189 248 / 18%);
|
|
729
|
+
box-shadow: 0 8px 24px rgb(15 23 42 / 18%);
|
|
730
|
+
}
|
|
731
|
+
.database-query-panel-head {
|
|
732
|
+
display: flex;
|
|
733
|
+
align-items: center;
|
|
734
|
+
justify-content: space-between;
|
|
735
|
+
gap: 12px;
|
|
736
|
+
padding-bottom: 2px;
|
|
737
|
+
}
|
|
738
|
+
.database-query-panel-head > div:first-child { min-width: 0; display: grid; gap: 2px; }
|
|
739
|
+
.database-query-panel-head strong { color: var(--ink); font-size: 13px; }
|
|
740
|
+
.database-query-panel-head span { overflow: hidden; color: var(--muted); font-family: var(--font-mono); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
|
|
741
|
+
.database-query-panel-actions { flex: none; display: flex; align-items: center; gap: 8px; }
|
|
742
|
+
.database-query-panel-actions .btn { min-height: 32px; }
|
|
743
|
+
.database-query-panel-actions .database-query-run { min-height: 32px; padding-inline: 14px; }
|
|
744
|
+
.database-sql-editor { position: relative; display: block; min-width: 0; }
|
|
745
|
+
.database-sql-editor > textarea { display: block; }
|
|
746
|
+
.database-suggestion-list {
|
|
747
|
+
position: absolute;
|
|
748
|
+
top: calc(100% - 2px);
|
|
749
|
+
left: 0;
|
|
750
|
+
z-index: 80;
|
|
751
|
+
width: min(430px, 100%);
|
|
752
|
+
max-height: 246px;
|
|
753
|
+
overflow-y: auto;
|
|
754
|
+
padding: 5px;
|
|
755
|
+
border: 1px solid var(--hairline-strong);
|
|
756
|
+
border-radius: 9px;
|
|
757
|
+
background: var(--surface);
|
|
758
|
+
box-shadow: 0 14px 36px rgb(0 0 0 / 16%);
|
|
759
|
+
}
|
|
760
|
+
.database-suggestion-list > button {
|
|
761
|
+
width: 100%;
|
|
762
|
+
min-width: 0;
|
|
763
|
+
display: grid;
|
|
764
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
765
|
+
gap: 2px 8px;
|
|
766
|
+
padding: 6px 8px;
|
|
767
|
+
border: 0;
|
|
768
|
+
border-radius: 7px;
|
|
769
|
+
background: transparent;
|
|
770
|
+
color: var(--ink);
|
|
771
|
+
cursor: pointer;
|
|
772
|
+
text-align: left;
|
|
773
|
+
}
|
|
774
|
+
.database-suggestion-list > button.is-active,
|
|
775
|
+
.database-suggestion-list > button:hover {
|
|
776
|
+
background: color-mix(in srgb, var(--accent) 11%, transparent);
|
|
777
|
+
}
|
|
778
|
+
.database-suggestion-label {
|
|
779
|
+
overflow: hidden;
|
|
780
|
+
font-family: var(--font-mono);
|
|
781
|
+
font-size: 12px;
|
|
782
|
+
font-weight: 650;
|
|
783
|
+
text-overflow: ellipsis;
|
|
784
|
+
white-space: nowrap;
|
|
785
|
+
}
|
|
786
|
+
.database-suggestion-kind {
|
|
787
|
+
align-self: center;
|
|
788
|
+
padding: 2px 6px;
|
|
789
|
+
border-radius: 999px;
|
|
790
|
+
background: var(--canvas-soft);
|
|
791
|
+
color: var(--muted);
|
|
792
|
+
font-size: 10px;
|
|
793
|
+
}
|
|
794
|
+
.database-suggestion-kind.is-table { color: var(--accent-active, var(--accent)); }
|
|
795
|
+
.database-suggestion-kind.is-column { color: var(--green); }
|
|
796
|
+
.database-suggestion-detail {
|
|
797
|
+
grid-column: 1 / -1;
|
|
798
|
+
overflow: hidden;
|
|
799
|
+
color: var(--muted);
|
|
800
|
+
font-size: 10px;
|
|
801
|
+
text-overflow: ellipsis;
|
|
802
|
+
white-space: nowrap;
|
|
803
|
+
}
|
|
804
|
+
.database-query-meta {
|
|
805
|
+
display: flex;
|
|
806
|
+
flex-wrap: wrap;
|
|
807
|
+
gap: 6px;
|
|
808
|
+
color: var(--muted);
|
|
809
|
+
font-size: 11px;
|
|
810
|
+
}
|
|
811
|
+
.database-query-meta > span {
|
|
812
|
+
padding: 3px 7px;
|
|
813
|
+
border: 1px solid var(--hairline);
|
|
814
|
+
border-radius: 999px;
|
|
815
|
+
background: var(--surface);
|
|
816
|
+
}
|
|
817
|
+
.database-query-result {
|
|
818
|
+
display: grid;
|
|
819
|
+
gap: 8px;
|
|
820
|
+
min-width: 0;
|
|
821
|
+
}
|
|
822
|
+
.database-query-summary {
|
|
823
|
+
display: flex;
|
|
824
|
+
align-items: center;
|
|
825
|
+
justify-content: space-between;
|
|
826
|
+
gap: 8px;
|
|
827
|
+
color: var(--muted);
|
|
828
|
+
font-size: 12px;
|
|
829
|
+
}
|
|
830
|
+
.database-workbench-title { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--hairline); }
|
|
831
|
+
.database-workbench-title > div { display: flex; align-items: center; gap: var(--space-2); }
|
|
832
|
+
.database-workbench-title h3 { margin: 0; }
|
|
833
|
+
.database-workbench-title > span { color: var(--muted); font-size: var(--text-sm); }
|
|
834
|
+
.database-workbench-empty { display: grid; place-content: center; gap: var(--space-2); min-height: 360px; color: var(--muted); text-align: center; }
|
|
835
|
+
.database-workbench-empty strong { color: var(--ink); font-size: var(--text-lg); }
|
|
836
|
+
.database-data-browser { padding-top: 0; border-top: 0; }
|
|
837
|
+
.database-header-actions { display: flex; gap: var(--space-2); }
|
|
838
|
+
.database-connection-card.is-selected { border-color: color-mix(in srgb, var(--accent) 60%, var(--hairline)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 10%, transparent); }
|
|
839
|
+
.database-modal-backdrop { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; background: rgb(9 13 20 / 58%); backdrop-filter: blur(3px); }
|
|
840
|
+
.database-modal { width: min(680px, 100%); max-height: min(860px, calc(100vh - 48px)); overflow-y: auto; border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 24px 72px rgb(0 0 0 / 28%); }
|
|
841
|
+
.database-modal .database-connection-form { border: 0; background: transparent; }
|
|
842
|
+
.database-schema-modal { width: min(680px, 100%); max-height: min(720px, calc(100vh - 48px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hairline-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 24px 72px rgb(0 0 0 / 28%); }
|
|
843
|
+
.database-schema-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--hairline); }
|
|
844
|
+
.database-schema-heading h3, .database-schema-heading p { margin: 0; }
|
|
845
|
+
.database-schema-heading p { margin-top: 3px; color: var(--muted); font-size: 12px; }
|
|
846
|
+
.database-schema-table-wrap { min-height: 0; overflow: auto; }
|
|
847
|
+
.database-schema-table { width: 100%; border-collapse: collapse; font-size: 12px; }
|
|
848
|
+
.database-schema-table th, .database-schema-table td { padding: 9px 12px; border-bottom: 1px solid var(--hairline); text-align: left; }
|
|
849
|
+
.database-schema-table th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 650; }
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
@container (max-width: 660px) {
|
|
853
|
+
.database-connections-header { align-items: stretch; flex-direction: column; }
|
|
854
|
+
.database-header-actions { flex: 0 1 auto; }
|
|
855
|
+
.database-header-actions select { flex: 1 1 118px; min-width: 0; }
|
|
856
|
+
.database-connections-header .panel-lead { display: none; }
|
|
857
|
+
.database-header-actions { justify-content: flex-start; }
|
|
858
|
+
.database-header-actions .btn { flex: 1 1 130px; }
|
|
859
|
+
.database-workbench-shell { grid-template-columns: 1fr; min-height: 0; }
|
|
860
|
+
.database-connection-rail { max-height: 280px; border-right: 0; border-bottom: 1px solid var(--hairline); }
|
|
861
|
+
.database-connection-rail-list { height: auto; max-height: 150px; }
|
|
862
|
+
.database-active-head { grid-template-columns: 1fr; }
|
|
863
|
+
.database-active-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
864
|
+
.database-workbench-toolbar > label { flex: 1 1 150px; }
|
|
865
|
+
.database-workbench-toolbar .database-query-run { width: 100%; margin-left: 0; }
|
|
866
|
+
.database-sql-workbench { grid-template-columns: 1fr; }
|
|
867
|
+
.database-table-list { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr); max-height: 300px; min-height: 0; }
|
|
868
|
+
.database-table-list > input { grid-column: 1; grid-row: 2; }
|
|
869
|
+
.database-table-list-scroll { grid-column: 1; grid-row: 3; max-height: 170px; min-height: 100px; }
|
|
870
|
+
}
|
|
871
|
+
@container (max-width: 540px) {
|
|
872
|
+
.database-workbench-main { min-height: 320px; padding: var(--space-3); }
|
|
873
|
+
.database-connections-header h2 { font-size: var(--text-lg); }
|
|
874
|
+
.database-header-actions .btn { padding-inline: 8px; }
|
|
875
|
+
.database-active-actions { grid-template-columns: 1fr; }
|
|
876
|
+
.database-query-panel { padding: 10px; }
|
|
877
|
+
.database-suggestion-list { width: 100%; }
|
|
878
|
+
.database-query-panel textarea { min-height: 96px; }
|
|
879
|
+
.database-query-summary { align-items: stretch; flex-direction: column; }
|
|
880
|
+
.database-query-summary .btn { width: 100%; }
|
|
881
|
+
.database-mode-switch { width: 100%; }
|
|
882
|
+
.database-mode-switch > button { flex: 1; }
|
|
883
|
+
.database-workbench-toolbar > label { flex: 1 1 100%; width: auto; }
|
|
884
|
+
.database-workbench-toolbar > .btn { flex: 1 1 calc(50% - 10px); justify-content: center; }
|
|
885
|
+
.database-workbench-toolbar > .database-mode-switch { flex: 1 1 100%; }
|
|
886
|
+
.database-workbench-toolbar > .database-browser-page-size { flex: 1 1 100%; }
|
|
887
|
+
}
|
|
888
|
+
@container (max-width: 360px) {
|
|
889
|
+
.database-header-actions .btn { flex: 1; }
|
|
890
|
+
.database-browser-pagination { align-items: stretch; flex-direction: column; }
|
|
891
|
+
.database-modal-backdrop { padding: 8px; }
|
|
892
|
+
}
|
|
893
|
+
.database-connections-empty {
|
|
894
|
+
padding: var(--space-5);
|
|
895
|
+
border: 1px dashed var(--hairline-strong);
|
|
896
|
+
border-radius: var(--radius-md);
|
|
897
|
+
color: var(--muted);
|
|
898
|
+
text-align: center;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
@media (max-width: 900px) {
|
|
902
|
+
.database-connection-form { grid-template-columns: 1fr; }
|
|
903
|
+
.database-connection-form h3,
|
|
904
|
+
.database-connection-form .muted { grid-column: 1; }
|
|
905
|
+
}
|