|
5 | 5 | import { AvatarGroup, Tab, Tabs } from '$lib/components'; |
6 | 6 | import { Button } from '$lib/elements/forms'; |
7 | 7 | import { toLocaleDate } from '$lib/helpers/date'; |
| 8 | + import { |
| 9 | + BODY_TOOLTIP_MAX_WIDTH, |
| 10 | + BODY_TOOLTIP_WRAPPER_STYLE |
| 11 | + } from '$lib/helpers/tooltipContent'; |
8 | 12 | import { isTabSelected } from '$lib/helpers/load'; |
9 | 13 | import { Cover } from '$lib/layout'; |
10 | 14 | import { daysLeftInTrial, getServiceLimit, readOnly } from '$lib/stores/billing'; |
|
110 | 114 | {/if} |
111 | 115 |
|
112 | 116 | {#if organization?.billingTrialStartDate && $daysLeftInTrial > 0 && organization.billingPlanDetails.trial && organization?.billingTrialDays} |
113 | | - <Tooltip> |
| 117 | + <Tooltip maxWidth={BODY_TOOLTIP_MAX_WIDTH}> |
114 | 118 | <Badge variant="secondary" content="Trial" /> |
115 | 119 | <svelte:fragment slot="tooltip"> |
116 | | - {`Your trial ends on ${toLocaleDate( |
117 | | - organization.billingStartDate |
118 | | - )}. ${$daysLeftInTrial} days remaining.`} |
| 120 | + <div style={BODY_TOOLTIP_WRAPPER_STYLE}> |
| 121 | + {`Your trial ends on ${toLocaleDate( |
| 122 | + organization.billingStartDate |
| 123 | + )}. ${$daysLeftInTrial} days remaining.`} |
| 124 | + </div> |
119 | 125 | </svelte:fragment> |
120 | 126 | </Tooltip> |
121 | 127 | {/if} |
|
139 | 145 | {/if} |
140 | 146 |
|
141 | 147 | {#if $isOwner} |
142 | | - <Tooltip disabled={!areMembersLimited} placement="bottom-end"> |
| 148 | + <Tooltip |
| 149 | + disabled={!areMembersLimited} |
| 150 | + placement="bottom-end" |
| 151 | + maxWidth={BODY_TOOLTIP_MAX_WIDTH}> |
143 | 152 | <div> |
144 | 153 | <Button |
145 | 154 | secondary |
|
150 | 159 | Invite |
151 | 160 | </Button> |
152 | 161 | </div> |
153 | | - <div slot="tooltip"> |
| 162 | + <div slot="tooltip" style={BODY_TOOLTIP_WRAPPER_STYLE}> |
154 | 163 | {!( |
155 | 164 | organization?.billingPlanDetails?.addons?.seats?.supported ?? |
156 | 165 | true |
|
0 commit comments