Prevent modal top from shrinking (#7167)

* fix: prevent modal top from shrinking

* fix: scroll and max height for share modal and popover

* fix: review
This commit is contained in:
Apoorv Mishra
2024-07-03 09:11:00 +05:30
committed by GitHub
parent 303125b682
commit de90f879f1
7 changed files with 157 additions and 66 deletions

View File

@@ -50,7 +50,12 @@ function ShareButton({ collection }: Props) {
)}
</PopoverDisclosure>
<Popover {...popover} aria-label={t("Share")} width={400}>
<Popover
{...popover}
aria-label={t("Share")}
width={400}
scrollable={false}
>
<SharePopover
collection={collection}
onRequestClose={popover.hide}

View File

@@ -51,7 +51,12 @@ function ShareButton({ document }: Props) {
)}
</PopoverDisclosure>
<Popover {...popover} aria-label={t("Share")} width={400}>
<Popover
{...popover}
aria-label={t("Share")}
width={400}
scrollable={false}
>
<SharePopover
document={document}
share={share}