fix: put symbols after text on both bind buttons

This commit is contained in:
Aisland
2026-08-20 23:21:57 +08:00
parent fbca9f4e66
commit 5bfa108628
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1967,7 +1967,7 @@ function buildCustomLayoutPrompt(req: string): string {
<div className="dsh-wt_bindFolderBox">
<div className="dsh-wt_bindFolderRow">
<span className="dsh-wt_bindFolderLabel">📁 {t('bind.folder')}</span>
<button type="button" className="dsh-wt_bindFolderChange" onClick={changeBindFolder}>↻ {t('bind.folderChange')}</button>
<button type="button" className="dsh-wt_bindFolderChange" onClick={changeBindFolder}>{t('bind.folderChange')} ↻</button>
</div>
<div className={'dsh-wt_bindFolderPath' + (projects.folders[bindPick.id] ? '' : ' dsh-wt_bindFolderPathNone')} title={projects.folders[bindPick.id] ?? ''}>
{projects.folders[bindPick.id] ?? t('bind.folderNone')}
@@ -1140,3 +1140,5 @@
- 实现:bindFolderChange 按钮文案改「↻ 更改」;probe-batch15 增 box0ChangeHasRefresh 断言。
- 验证:box0ChangeHasRefresh ✓;functional-diag 全 20 STEP ERROR_COUNT: 0。
- 备注:纯客户端改动,F5 即生效。
- 微调:用户指出两按钮符号一前一后不对称——统一为符号都在文字后:
「更改 ↻」+「解绑 ✕」;probe-batch15 断言改 box0ChangeText/box0ChangeSymAtEnd。
+2 -1
View File
@@ -62,7 +62,8 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
out.box0Path = boxes[0] ? boxes[0].querySelector('.dsh-wt_bindFolderPath').textContent : null;
var chg = boxes[0] && boxes[0].querySelector('.dsh-wt_bindFolderChange');
out.box0Change = !!chg;
out.box0ChangeHasRefresh = chg ? chg.textContent.indexOf('\u21bb') >= 0 : false;
out.box0ChangeText = chg ? chg.textContent.trim() : null;
out.box0ChangeSymAtEnd = chg ? chg.textContent.trim().lastIndexOf('\u21bb') === chg.textContent.trim().length - 1 : false;
// 弹窗左上角不再有「绑定对话」标题;两个框标题字号一致
out.popTitleGone = !pop.querySelector('.dsh-wt_menuLabel');
var lb0 = boxes[0] && boxes[0].querySelector('.dsh-wt_bindFolderLabel');