#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 5463fa7390
commit 772c76e0a4
6 changed files with 5 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

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;