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:
@@ -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}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user