#6797: Don't show depth indicator in API select placeholder

This commit is contained in:
checktheroads
2021-07-30 01:03:26 -07:00
parent 0bd3d6dd77
commit dbcb4aac31
6 changed files with 10 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -328,7 +328,7 @@ class APISelect {
if (!this.preSorted) {
this.preSorted = true;
}
text = `<span class="depth">${'─'.repeat(result._depth)}</span> ${text}`;
text = `<span class="depth">${'─'.repeat(result._depth)}&nbsp;</span>${text}`;
}
const data = {} as Record<string, string>;
const value = result.id.toString();

View File

@@ -71,6 +71,10 @@ $spacing-s: $input-padding-x;
border-color: currentColor;
}
}
.placeholder .depth {
// Don't show the depth indicator outside of the menu.
display: none;
}
span.placeholder > *,
span.placeholder {
line-height: $input-line-height;