From bdd5dac99e6a0ff0ea9c821a6958bffe4e93de5e Mon Sep 17 00:00:00 2001 From: mournfulCoroner Date: Fri, 8 Dec 2023 14:20:43 +0300 Subject: [PATCH] fix(SharePopover): fix style for buttons going beyond limits (#129) --- src/components/SharePopover/SharePopover.scss | 4 ++++ src/components/SharePopover/SharePopover.tsx | 1 + 2 files changed, 5 insertions(+) diff --git a/src/components/SharePopover/SharePopover.scss b/src/components/SharePopover/SharePopover.scss index 7eed228d..06690686 100644 --- a/src/components/SharePopover/SharePopover.scss +++ b/src/components/SharePopover/SharePopover.scss @@ -11,6 +11,10 @@ $block: '.#{variables.$ns}share-popover'; padding: 8px; } + &__tooltip-content { + max-width: none; + } + &__container { @include mixins.button-reset(); @include mixins.focusable(); diff --git a/src/components/SharePopover/SharePopover.tsx b/src/components/SharePopover/SharePopover.tsx index 1fb74d29..8ef9b5a9 100644 --- a/src/components/SharePopover/SharePopover.tsx +++ b/src/components/SharePopover/SharePopover.tsx @@ -160,6 +160,7 @@ export const SharePopover = (props: SharePopoverProps) => { content={content} className={b(null, className)} tooltipClassName={b('tooltip', tooltipClassName)} + tooltipContentClassName={b('tooltip-content')} onClick={handleClick} tooltipId={tooltipId} disablePortal