Show alias

This commit is contained in:
pythongosssss
2023-09-08 19:15:33 +01:00
parent 3b01aa86f1
commit d09a4e244e
2 changed files with 11 additions and 3 deletions
+2 -2
View File
@@ -25,7 +25,7 @@
text-decoration-color: dodgerblue;
}
.pysssss-autocomplete-priority {
.pysssss-autocomplete-pill {
margin-left: auto;
font-size: 10px;
color: #fff;
@@ -33,7 +33,7 @@
position: relative;
}
.pysssss-autocomplete-priority::after {
.pysssss-autocomplete-pill::after {
content: "";
display: block;
background: rgba(255, 255, 255, 0.25);
+9 -1
View File
@@ -499,12 +499,20 @@ export class TextAreaAutoComplete {
if (wordInfo.priority) {
parts.push(
$el("span.pysssss-autocomplete-priority", {
$el("span.pysssss-autocomplete-pill", {
textContent: wordInfo.priority,
})
);
}
if (wordInfo.value && wordInfo.text !== wordInfo.value) {
parts.push(
$el("span.pysssss-autocomplete-pill", {
textContent: wordInfo.value,
})
);
}
if (wordInfo.info) {
parts.push(
$el("a.pysssss-autocomplete-item-info", {