@@ -33,7 +33,6 @@ import {
3333 boxStyles ,
3434 toggleButtonStyles ,
3535 sliderStyles ,
36- iconStyles ,
3736 cardStyles ,
3837 formControlStyles ,
3938 featureDetailsStyles ,
@@ -236,19 +235,24 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
236235 < FormControl fullWidth >
237236 < InputLabel sx = { typographyStyles . qanelasFont } > Optionally, choose one or more add-ons</ InputLabel >
238237 < Select
238+ fullWidth
239239 value = { selectedAddon ?. id || "" }
240240 onChange = { ( e ) => handleAddonChange ( e . target . value ) }
241241 label = "Optionally, choose one or more add-ons"
242+ MenuProps = { {
243+ disableScrollLock : true ,
244+ disablePortal : true ,
245+ } }
242246 >
243247 { addOns . map ( ( addon ) => (
244248 < MenuItem key = { addon . id } value = { addon . id } >
245249 < Box sx = { boxStyles . menuItem } >
246250 { renderIcon ( addon . iconType ) }
247- < Box >
248- < Typography variant = "body1" fontWeight = "500" sx = { typographyStyles . qanelasFont } >
251+ < Box sx = { { minWidth : 0 , flex : 1 } } >
252+ < Typography noWrap variant = "body1" fontWeight = "500" sx = { typographyStyles . ellipsisText } >
249253 { addon . name }
250254 </ Typography >
251- < Typography variant = "body2" color = "text.secondary" sx = { typographyStyles . ellipsisText } >
255+ < Typography nowrap variant = "body2" color = "text.secondary" sx = { typographyStyles . ellipsisText } >
252256 { addon . id === "academy"
253257 ? addon . description
254258 : ( ( ) => {
@@ -388,7 +392,15 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
388392 label : (
389393 < Box sx = { { textAlign : "center" , fontSize : "1.25rem" , fontWeight : "bold" } } >
390394 < Box > { option . learners === "2500+" ? "2,500+" : option . learners } </ Box >
391- < Box sx = { { color : "text.secondary" , mb : 1.5 , fontSize : ".9rem" } } >
395+ < Box
396+ sx = { {
397+ color : "text.secondary" ,
398+ mb : 1.5 ,
399+ fontSize : {
400+ xs : "0.75rem" ,
401+ sm : "0.9rem" ,
402+ }
403+ } } >
392404 { formatPrice ( isYearly ? option . yearlyPerUser : option . monthlyPerUser ) } < br /> { targetSubAddon . unitLabelSingular } /{ isYearly ? "year" : "month" }
393405 </ Box >
394406 </ Box >
0 commit comments