#6797: Don't show depth indicator in API select placeholder
This commit is contained in:
parent
5463fa7390
commit
772c76e0a4
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
|
|
@ -328,7 +328,7 @@ class APISelect {
|
||||||
if (!this.preSorted) {
|
if (!this.preSorted) {
|
||||||
this.preSorted = true;
|
this.preSorted = true;
|
||||||
}
|
}
|
||||||
text = `<span class="depth">${'─'.repeat(result._depth)}</span> ${text}`;
|
text = `<span class="depth">${'─'.repeat(result._depth)} </span>${text}`;
|
||||||
}
|
}
|
||||||
const data = {} as Record<string, string>;
|
const data = {} as Record<string, string>;
|
||||||
const value = result.id.toString();
|
const value = result.id.toString();
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,10 @@ $spacing-s: $input-padding-x;
|
||||||
border-color: currentColor;
|
border-color: currentColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.placeholder .depth {
|
||||||
|
// Don't show the depth indicator outside of the menu.
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
span.placeholder > *,
|
span.placeholder > *,
|
||||||
span.placeholder {
|
span.placeholder {
|
||||||
line-height: $input-line-height;
|
line-height: $input-line-height;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue