showModal() -> show() to get rid of unnecessary margin
This commit is contained in:
+2
-1
@@ -344,6 +344,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
transition: color var(--transition-speed);
|
transition: color var(--transition-speed);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.suggestion:focus,
|
.suggestion:focus,
|
||||||
@@ -585,7 +586,7 @@
|
|||||||
|
|
||||||
#onKeydown = (e) => {
|
#onKeydown = (e) => {
|
||||||
if (!this.#refs.dialog.open) {
|
if (!this.#refs.dialog.open) {
|
||||||
this.#refs.dialog.showModal();
|
this.#refs.dialog.show();
|
||||||
this.#refs.input.focus();
|
this.#refs.input.focus();
|
||||||
|
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user