chore: fix non-portal popover positioning
This commit is contained in:
@@ -28,7 +28,7 @@ const ListItemVaultInfo: FunctionComponent<Props> = ({ item }) => {
|
|||||||
const sharedByContact = application.sharedVaults.getItemSharedBy(item)
|
const sharedByContact = application.sharedVaults.getItemSharedBy(item)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mt-2.5 flex flex-wrap items-center gap-2">
|
<div className="flex flex-wrap items-center gap-2">
|
||||||
<VaultNameBadge vault={vault} />
|
<VaultNameBadge vault={vault} />
|
||||||
|
|
||||||
{sharedByContact && (
|
{sharedByContact && (
|
||||||
|
|||||||
@@ -223,7 +223,6 @@ const FilePreviewModal = observer(({ application }: Props) => {
|
|||||||
align="start"
|
align="start"
|
||||||
className="py-2"
|
className="py-2"
|
||||||
overrideZIndex="z-modal"
|
overrideZIndex="z-modal"
|
||||||
portal={false}
|
|
||||||
>
|
>
|
||||||
<Menu a11yLabel="File context menu" isOpen={showOptionsMenu}>
|
<Menu a11yLabel="File context menu" isOpen={showOptionsMenu}>
|
||||||
<FileMenuOptions
|
<FileMenuOptions
|
||||||
|
|||||||
@@ -337,7 +337,6 @@ const NoteConflictResolutionModal = ({
|
|||||||
className="!z-modal !max-w-[50ch]"
|
className="!z-modal !max-w-[50ch]"
|
||||||
label={shouldSyncComparisonScroll ? 'Scrolling is synced' : 'Scrolling is not synced. Click to sync.'}
|
label={shouldSyncComparisonScroll ? 'Scrolling is synced' : 'Scrolling is not synced. Click to sync.'}
|
||||||
showOnMobile
|
showOnMobile
|
||||||
portal={false}
|
|
||||||
>
|
>
|
||||||
<div className="relative rounded-full p-1 hover:bg-contrast">
|
<div className="relative rounded-full p-1 hover:bg-contrast">
|
||||||
<Icon type={shouldSyncComparisonScroll ? 'link' : 'link-off'} className="text-neutral" />
|
<Icon type={shouldSyncComparisonScroll ? 'link' : 'link-off'} className="text-neutral" />
|
||||||
@@ -382,7 +381,6 @@ const NoteConflictResolutionModal = ({
|
|||||||
}
|
}
|
||||||
showOnMobile
|
showOnMobile
|
||||||
showOnHover={false}
|
showOnHover={false}
|
||||||
portal={false}
|
|
||||||
>
|
>
|
||||||
<button className="rounded-full p-1 hover:bg-contrast">
|
<button className="rounded-full p-1 hover:bg-contrast">
|
||||||
<Icon type="info" className="text-neutral" />
|
<Icon type="info" className="text-neutral" />
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import MenuItem from '../Menu/MenuItem'
|
|||||||
import Menu from '../Menu/Menu'
|
import Menu from '../Menu/Menu'
|
||||||
import { featureTrunkVaultsEnabled } from '@/FeatureTrunk'
|
import { featureTrunkVaultsEnabled } from '@/FeatureTrunk'
|
||||||
|
|
||||||
const VaultMenu = ({ items }: { items: DecryptedItemInterface[] }) => {
|
const VaultMenu = observer(({ items }: { items: DecryptedItemInterface[] }) => {
|
||||||
const application = useApplication()
|
const application = useApplication()
|
||||||
const vaults = application.vaults.getVaults()
|
const vaults = application.vaults.getVaults()
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ const VaultMenu = ({ items }: { items: DecryptedItemInterface[] }) => {
|
|||||||
})}
|
})}
|
||||||
</Menu>
|
</Menu>
|
||||||
)
|
)
|
||||||
}
|
})
|
||||||
|
|
||||||
const AddToVaultMenuOption = ({ iconClassName, items }: { iconClassName: string; items: DecryptedItemInterface[] }) => {
|
const AddToVaultMenuOption = ({ iconClassName, items }: { iconClassName: string; items: DecryptedItemInterface[] }) => {
|
||||||
const buttonRef = useRef<HTMLButtonElement>(null)
|
const buttonRef = useRef<HTMLButtonElement>(null)
|
||||||
|
|||||||
Reference in New Issue
Block a user