fix ugly FF bug

This commit is contained in:
Aidan Bleser 2025-07-10 07:08:24 -05:00
parent 7b9595e571
commit a77493c9ef
2 changed files with 6 additions and 1 deletions

View file

@ -41,6 +41,7 @@
import PinIcon from '~icons/lucide/pin'; import PinIcon from '~icons/lucide/pin';
import PinOffIcon from '~icons/lucide/pin-off'; import PinOffIcon from '~icons/lucide/pin-off';
import { isPinned } from '$lib/backend/convex/user_enabled_models'; import { isPinned } from '$lib/backend/convex/user_enabled_models';
import { isFirefox } from '$lib/hooks/is-firefox.svelte';
type Props = { type Props = {
class?: string; class?: string;
@ -271,7 +272,7 @@
<Popover.Content <Popover.Content
portalProps={{ portalProps={{
disabled: true disabled: isFirefox
}} }}
align="start" align="start"
sideOffset={5} sideOffset={5}

View 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');