fix ugly FF bug
This commit is contained in:
parent
7b9595e571
commit
a77493c9ef
2 changed files with 6 additions and 1 deletions
|
|
@ -41,6 +41,7 @@
|
|||
import PinIcon from '~icons/lucide/pin';
|
||||
import PinOffIcon from '~icons/lucide/pin-off';
|
||||
import { isPinned } from '$lib/backend/convex/user_enabled_models';
|
||||
import { isFirefox } from '$lib/hooks/is-firefox.svelte';
|
||||
|
||||
type Props = {
|
||||
class?: string;
|
||||
|
|
@ -271,7 +272,7 @@
|
|||
|
||||
<Popover.Content
|
||||
portalProps={{
|
||||
disabled: true
|
||||
disabled: isFirefox
|
||||
}}
|
||||
align="start"
|
||||
sideOffset={5}
|
||||
|
|
|
|||
4
src/lib/hooks/is-firefox.svelte.ts
Normal file
4
src/lib/hooks/is-firefox.svelte.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// Because Firefox is stupid
|
||||
|
||||
/** Attempts to determine if a user is using Firefox using `navigator.userAgent`. */
|
||||
export const isFirefox = navigator.userAgent.includes('Mozilla');
|
||||
Loading…
Add table
Reference in a new issue