@vincentbanana/banana-gui 1.0.6 → 1.0.7
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/package.json +4 -4
- package/ui/app.js +3 -3
- package/ui/style.css +9 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
2
|
"name": "@vincentbanana/banana-gui",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Banana
|
|
3
|
+
"version": "1.0.7",
|
|
4
|
+
"description": "Banana 鐨勫浘褰㈢晫闈細鏈湴鏈嶅姟 + 娴忚鍣ㄣ€傞粦鐧戒富棰橈紝鑷粯鍥炬爣锛屾棤绗笁鏂?UI 渚濊禆",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.0.0"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"electron-builder": "^25.0.0"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@vincentbanana/bananacli": "^0.8.
|
|
75
|
+
"@vincentbanana/bananacli": "^0.8.7"
|
|
76
76
|
},
|
|
77
77
|
"license": "MIT",
|
|
78
78
|
"publishConfig": {
|
package/ui/app.js
CHANGED
|
@@ -529,7 +529,7 @@ const state = {
|
|
|
529
529
|
dock: { open: false, height: 280 },
|
|
530
530
|
changes: null,
|
|
531
531
|
changesFile: null,
|
|
532
|
-
todoOpen:
|
|
532
|
+
todoOpen: false,
|
|
533
533
|
attachmentPath: '',
|
|
534
534
|
trustPrompted: false,
|
|
535
535
|
};
|
|
@@ -2375,8 +2375,8 @@ async function send() {
|
|
|
2375
2375
|
if (!reasoningStarted) {
|
|
2376
2376
|
reasoningStarted = Date.now();
|
|
2377
2377
|
reasoning.hidden = false;
|
|
2378
|
-
//
|
|
2379
|
-
|
|
2378
|
+
// 思考时默认展开,开始回答后自动收起;用户手动操作过后尊重用户选择。
|
|
2379
|
+
if (reasoning.dataset.user !== '1') reasoning.open = true;
|
|
2380
2380
|
}
|
|
2381
2381
|
reasoningText += event.chunk;
|
|
2382
2382
|
scheduleReasoning();
|
package/ui/style.css
CHANGED
|
@@ -346,7 +346,7 @@ button, input, textarea, select { font: inherit; color: inherit; }
|
|
|
346
346
|
min-height: 0;
|
|
347
347
|
overflow-y: auto;
|
|
348
348
|
scroll-behavior: smooth;
|
|
349
|
-
padding:
|
|
349
|
+
padding: 18px 0 10px;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
.msg {
|
|
@@ -410,7 +410,7 @@ body.switching { cursor: progress; }
|
|
|
410
410
|
to { opacity: 1; transform: none; }
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
-
.msg + .msg { margin-top:
|
|
413
|
+
.msg + .msg { margin-top: 16px; }
|
|
414
414
|
|
|
415
415
|
.msg-role {
|
|
416
416
|
display: flex;
|
|
@@ -557,7 +557,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
557
557
|
/* ---------- composer ---------- */
|
|
558
558
|
|
|
559
559
|
.composer-wrap {
|
|
560
|
-
padding:
|
|
560
|
+
padding: 8px 24px 10px;
|
|
561
561
|
border-top: 1px solid var(--line);
|
|
562
562
|
background: var(--bg);
|
|
563
563
|
}
|
|
@@ -568,7 +568,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
568
568
|
display: flex;
|
|
569
569
|
align-items: flex-end;
|
|
570
570
|
gap: 8px;
|
|
571
|
-
padding:
|
|
571
|
+
padding: 6px 8px 6px 12px;
|
|
572
572
|
border: 1px solid var(--line-strong);
|
|
573
573
|
border-radius: 8px;
|
|
574
574
|
background: var(--bg);
|
|
@@ -579,8 +579,8 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
579
579
|
|
|
580
580
|
.composer textarea {
|
|
581
581
|
flex: 1;
|
|
582
|
-
min-height:
|
|
583
|
-
max-height:
|
|
582
|
+
min-height: 24px;
|
|
583
|
+
max-height: 160px;
|
|
584
584
|
padding: 4px 0;
|
|
585
585
|
border: 0;
|
|
586
586
|
outline: none;
|
|
@@ -3943,13 +3943,13 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
3943
3943
|
.msg-attachments { margin-top: 7px; max-width: none; }
|
|
3944
3944
|
.msg-attachments .att { height: 26px; font-size: 11px; }
|
|
3945
3945
|
|
|
3946
|
-
.plan-card { width: 100%; max-width: 744px; margin:
|
|
3946
|
+
.plan-card { width: 100%; max-width: 744px; margin: 4px auto 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--accent-ink) 24%, var(--line)); border-radius: 8px; background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
|
|
3947
3947
|
.plan-card.is-approved { border-color: var(--line); background: var(--panel); }
|
|
3948
3948
|
.plan-card.is-cancelled { opacity: 0.6; }
|
|
3949
3949
|
.plan-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text); }
|
|
3950
3950
|
.plan-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
|
|
3951
3951
|
.plan-hint { margin-left: auto; font-size: 10.5px; font-weight: 400; color: var(--text-3); }
|
|
3952
|
-
.plan-list { margin-top:
|
|
3952
|
+
.plan-list { margin-top: 7px; display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; }
|
|
3953
3953
|
.plan-item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 19px; color: var(--text-2); }
|
|
3954
3954
|
.plan-text { min-width: 0; }
|
|
3955
3955
|
.plan-meta { flex-basis: 100%; margin-left: 40px; font-size: 11px; line-height: 16px; color: var(--text-3); }
|
|
@@ -3957,7 +3957,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
3957
3957
|
.plan-mark { width: 13px; flex: none; display: grid; place-items: center; padding-top: 3px; color: var(--text-3); }
|
|
3958
3958
|
.plan-mark svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
|
|
3959
3959
|
.plan-empty { color: var(--text-3); font-size: 11.5px; line-height: 1.6; }
|
|
3960
|
-
.plan-actions { display: flex; gap: 7px; margin-top:
|
|
3960
|
+
.plan-actions { display: flex; gap: 7px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
|
|
3961
3961
|
.plan-actions .btn { height: 28px; font-size: 11.5px; }
|
|
3962
3962
|
|
|
3963
3963
|
.tasks-empty { padding: 18px 14px; color: var(--text-3); font-size: 12px; }
|