feat(界面设计): 简化选中样式,修正下拉箭头
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-10-30 16:20:15 +08:00
1 parent f05275c6b8
commit 86e4d7d6ae
2 files changed
+4 -39

No files matched your search

+1 -2
View File
@@ -98,13 +98,12 @@ export class FontPicker {
return terms.every(term => name.includes(term));
});
this.list.replaceChildren();
for (const { font, index, group } of this.matches) {
for (const { font, index } of this.matches) {
const option = document.createElement("div");
option.className = "font-option";
option.id = `${this.list.id}-${index}`;
option.dataset.index = String(index);
option.setAttribute("data-disabled", String(Boolean(font.disabled)));
option.setAttribute("data-current", String(!font.disabled && group.includes(Number(this.value))));
const name = document.createElement("span");
name.textContent = font.menuFamily || font.fullName || font.name;
option.append(name);