Skip to content

Commit

Permalink
fix: tooltip text alignment (#3896)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshanzel authored Nov 30, 2024
1 parent 819f542 commit b253240
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/shared/src/components/plus/PlusListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export const PlusListItem = ({
condition={!!item.tooltip}
wrapper={(component: ReactElement) => (
<SimpleTooltip
container={{ className: 'tablet:max-w-72' }}
container={{
className: 'tablet:max-w-72 text-center',
}}
content={item.tooltip}
delay={0}
forceLoad
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ export function BaseTooltipContainer({
{!!showArrow && (
<Arrow
data-popper-arrow
className={classNames(styles.tippyTooltipArrow, bgClassName)}
className={classNames(
styles.tippyTooltipArrow,
bgClassName,
'text-justify',
)}
/>
)}
</div>
Expand Down

0 comments on commit b253240

Please sign in to comment.