File tree Expand file tree Collapse file tree
src/lib/features/awesome-privacy/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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() {
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 -->
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 [])}
You can’t perform that action at this time.
0 commit comments