Skip to content

Commit 9c32743

Browse files
committed
add comments and remove unused classes
1 parent 5eed502 commit 9c32743

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/lib/features/awesome-privacy/components/search.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@
8181
8282
function open() {
8383
dialog?.showModal();
84+
85+
//NOTE: needed in chromium based browsers to prevent the dialog to endup outside the viewport.
8486
setTimeout(() => {
8587
inputElement?.focus();
86-
}, 200);
88+
}, 50);
8789
}
8890
8991
function close() {
@@ -190,7 +192,7 @@
190192
onclose={close}
191193
>
192194
<div
193-
class="relative modal-box max-w-3xl p-0 max-md:h-full max-md:max-h-none md:mt-[10vh] md:h-[clamp(12rem,75vh,75vh)] md:w-11/12"
195+
class="relative modal-box max-w-3xl p-0 max-md:h-dvh max-md:max-h-none md:mt-[10vh] md:h-[clamp(12rem,75vh,75vh)] md:w-11/12"
194196
>
195197
<div class="flex h-full flex-col">
196198
<!-- Search bar -->
@@ -236,7 +238,7 @@
236238

237239
<!-- Results -->
238240
<div
239-
class="flex-1 overflow-y-auto overscroll-none [scrollbar-width:thin]"
241+
class="flex-1 overflow-y-auto [scrollbar-width:thin]"
240242
style="margin-bottom: {keyboardHeight}px"
241243
>
242244
{#snippet entryList(entries: SearchEntry[])}

0 commit comments

Comments
 (0)