fix(settings): enlarge folder tree disclosure arrows

中文: 将插件运行范围文件夹树的展开箭头放大一倍,并补充设置页测试锁定样式。

English: Doubles the folder tree disclosure arrow size in plugin run scope settings and adds a settings test for the style.
This commit is contained in:
Dusk 2026-04-26 09:01:58 +08:00
parent 23b9b83527
commit 77e6c33a7d
3 changed files with 3 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -1325,6 +1325,7 @@ describe("PluginSettingTab", () => {
expect(childRow.style.marginLeft).toBe("18px");
expect(childToggle.style.width).toBe("24px");
expect(childToggle.style.height).toBe("24px");
expect(childToggle.style.fontSize).toBe("2em");
expect(childCheckbox).toBeDefined();
expect(childLabel.style.whiteSpace).toBe("nowrap");
expect(childLabel.style.overflow).toBe("hidden");

View file

@ -1395,6 +1395,7 @@ export class AnkiHeadingSyncSettingTab extends PluginSettingTab {
toggleControl.style.border = "0";
toggleControl.style.background = "transparent";
toggleControl.style.boxShadow = "none";
toggleControl.style.fontSize = "2em";
toggleControl.style.lineHeight = "1";
toggleControl.style.color = "var(--text-muted)";
if (hasChildren) {