Skip to content

Commit cec3cfc

Browse files
committed
Fix: Update
Signed-off-by: Varad Gupta <114755221+vr-varad@users.noreply.github.com>
1 parent 26d1ddd commit cec3cfc

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • src/components/Pricing/PricingAddons

src/components/Pricing/PricingAddons/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly }) => {
239239
<FormControl fullWidth>
240240
<InputLabel sx={{ fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif" }}>Optionally, choose one or more add-ons</InputLabel>
241241
<Select
242+
fullWidth
242243
value={selectedAddon?.id || ""}
243244
onChange={(e) => handleAddonChange(e.target.value)}
244245
label="Optionally, choose one or more add-ons"
@@ -249,13 +250,13 @@ export const PricingAddons = ({ isYearly = false, setIsYearly }) => {
249250
>
250251
{addOns.map((addon) => (
251252
<MenuItem key={addon.id} value={addon.id}>
252-
<Box sx={{ display: "flex", alignItems: "center", gap: 2, py: 1 }}>
253+
<Box sx={{ display: "flex", alignItems: "center", gap: 2, py: 1, width: "100%" }}>
253254
{addon.icon}
254-
<Box>
255-
<Typography variant="body1" fontWeight="500" sx={{ textOverflow: "ellipsis",whiteSpace: "normal", fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif" }}>
255+
<Box sx={{ minWidth: 0, flex: 1 }}>
256+
<Typography noWrap variant="body1" fontWeight="500" sx={{ overflow: "hidden", textOverflow: "ellipsis",whiteSpace: "nowrap", fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif" }}>
256257
{addon.name}
257258
</Typography>
258-
<Typography variant="body2" color="text.secondary" sx={{ textOverflow: "ellipsis", whiteSpace: "normal", fontStyle: "italic", fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif" }}>
259+
<Typography noWrap variant="body2" color="text.secondary" sx={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", fontStyle: "italic", fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif" }}>
259260
{addon.id === "academy"
260261
? addon.description
261262
: (() => {

0 commit comments

Comments
 (0)