mirror of
https://github.com/xvvvyz/tilde.git
synced 2026-03-11 14:44:24 +00:00
no color if no color
This commit is contained in:
parent
b1b3d65a97
commit
1faa9b3b8f
1 changed files with 5 additions and 3 deletions
|
|
@ -399,8 +399,8 @@
|
|||
}
|
||||
|
||||
.search-suggestion.highlight {
|
||||
background: var(--background);
|
||||
color: var(--foreground);
|
||||
background: var(--foreground);
|
||||
color: var(--background);
|
||||
}
|
||||
|
||||
.search-suggestion b {
|
||||
|
|
@ -1229,7 +1229,9 @@
|
|||
|
||||
_setBackgroundFromQuery(query) {
|
||||
if (!this._colors) return;
|
||||
this._formEl.style.background = this._parseQuery(query).color;
|
||||
const color = this._parseQuery(query).color;
|
||||
if (!color) return;
|
||||
this._formEl.style.background = color;
|
||||
}
|
||||
|
||||
_submitForm(e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue