Skip to content

Commit

Permalink
fix: 🐛 More intuitive text inputs on hierarchies settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Aug 22, 2021
1 parent 00dbce8 commit 14aaebe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/BreadcrumbsSettingTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class BreadcrumbsSettingTab extends PluginSettingTab {
}

const addHierarchyRow = (
values: userHierarchy = { up: [""], same: [""], down: [""] },
values: userHierarchy = { up: [""], same: [""], down: [""] },
existing = false
) => {
const row = createSpan({ cls: "hierarchy-row" });
Expand All @@ -56,17 +56,17 @@ export class BreadcrumbsSettingTab extends PluginSettingTab {

hierarchyNames.createEl("label", { attr: { for: "up" }, text: "↑" });
const upInput = hierarchyNames.createEl("input", {
attr: { id: "up" },
attr: { id: "up", placeholder: "↑" },
value: values.up.join(", "),
});
hierarchyNames.createEl("label", { attr: { for: "same" }, text: "→" });
const sameInput = hierarchyNames.createEl("input", {
attr: { id: "same" },
attr: { id: "same", placeholder: "→" },
value: values.same.join(", "),
});
hierarchyNames.createEl("label", { attr: { for: "down" }, text: "↓" });
const downInput = hierarchyNames.createEl("input", {
attr: { id: "down" },
attr: { id: "down", placeholder: "↓" },
value: values.down.join(", "),
});
let cleanInputs = [upInput.value, sameInput.value, downInput.value].map(
Expand Down

0 comments on commit 14aaebe

Please sign in to comment.