@vincentbanana/banana-gui 1.0.11 → 1.0.12

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincentbanana/banana-gui",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Banana 鐨勫浘褰㈢晫闈細鏈湴鏈嶅姟 + 娴忚鍣ㄣ€傞粦鐧戒富棰橈紝鑷粯鍥炬爣锛屾棤绗笁鏂?UI 渚濊禆",
5
5
  "type": "module",
6
6
  "engines": {
@@ -72,7 +72,7 @@
72
72
  "electron-builder": "^25.0.0"
73
73
  },
74
74
  "dependencies": {
75
- "@vincentbanana/bananacli": "^0.8.11"
75
+ "@vincentbanana/bananacli": "^0.8.12"
76
76
  },
77
77
  "license": "MIT",
78
78
  "publishConfig": {
package/ui/app.js CHANGED
@@ -157,6 +157,7 @@ const STRINGS = {
157
157
  'time.days': '天前',
158
158
  'time.today': '今天',
159
159
  'time.yesterday': '昨天',
160
+ 'msg.you': '你',
160
161
  },
161
162
  en: {
162
163
  'sidebar.toggle': 'Conversations (Ctrl+B)',
@@ -234,6 +235,7 @@ const STRINGS = {
234
235
  'time.days': 'd ago',
235
236
  'time.today': 'Today',
236
237
  'time.yesterday': 'Yesterday',
238
+ 'msg.you': 'You',
237
239
  },
238
240
  };
239
241
 
@@ -1189,7 +1191,7 @@ function renderMessage(message) {
1189
1191
  node.className = `msg ${message.role}`;
1190
1192
  const role = document.createElement('div');
1191
1193
  role.className = 'msg-role';
1192
- role.textContent = message.role === 'user' ? '你' : 'Banana';
1194
+ role.textContent = message.role === 'user' ? t('msg.you') : 'Banana';
1193
1195
  const body = document.createElement('div');
1194
1196
  body.className = 'msg-body';
1195
1197
  if (message.role === 'user') {
package/ui/style.css CHANGED
@@ -4219,10 +4219,17 @@ input:focus-visible, textarea:focus-visible { outline: none; }
4219
4219
  .msg-body h2,
4220
4220
  .msg-body h3 { font-size: 14.5px; margin: 18px 0 8px; font-weight: 600; }
4221
4221
  .msg-role {
4222
+ display: flex;
4223
+ align-items: center;
4224
+ gap: 6px;
4222
4225
  font-size: 10.5px;
4223
4226
  letter-spacing: 0.09em;
4224
4227
  margin-bottom: 6px;
4225
4228
  }
4229
+ .msg.user .msg-role { justify-content: flex-end; }
4230
+ .msg.user .msg-role::before { display: none; }
4231
+ .msg.assistant .msg-role::before { background: var(--accent-ink); opacity: 0.45; }
4232
+ .msg.assistant .msg-role { color: var(--text-3); }
4226
4233
  .msg.user .msg-body {
4227
4234
  background: var(--panel);
4228
4235
  border-color: var(--line-strong);