From 97cc8fdc158651f013221945212501418e6a5175 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 29 Sep 2025 15:22:22 +0300 Subject: [PATCH] docs: fix pricing page on small devices (#13617) --- .../Pricing/FeatureSections/index.tsx | 22 +++++++++++-------- .../components/Pricing/HeroPricing/index.tsx | 14 ++++++++---- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/www/apps/cloud/components/Pricing/FeatureSections/index.tsx b/www/apps/cloud/components/Pricing/FeatureSections/index.tsx index 2f676f002c..227670f1f1 100644 --- a/www/apps/cloud/components/Pricing/FeatureSections/index.tsx +++ b/www/apps/cloud/components/Pricing/FeatureSections/index.tsx @@ -13,6 +13,7 @@ import { CurrencyDollar, ServerStack, Shopping, + Users, WIP, } from "@medusajs/icons" @@ -56,6 +57,7 @@ const featureIcons: Record = { "Hosting & Deployment": ServerStack, "Compute & Resources": WIP, "Organization & Billing": CurrencyDollar, + "Medusa Support": Users, } // Helper function to render Block content (Sanity rich text) @@ -97,11 +99,11 @@ const FeatureSections: React.FC = ({ // Calculate consistent column widths // Use fractional units to ensure all grids have matching column sizes const featureNameFraction = 2 // Feature name gets 2 units - const featureColumnFraction = 1 // Each feature column gets 1 unit - const gridTemplate = `${featureNameFraction}fr repeat(${columnCount}, ${featureColumnFraction}fr)` + const featureColumnFraction = `minmax(0, 1fr)` // Each feature column gets 1 unit + const gridTemplate = `${featureNameFraction}fr repeat(${columnCount}, ${featureColumnFraction})` return ( -
+
{/* Header */}
= ({ }} > {/* Features label column */} -
-

Features

+
+

+ Features +

{/* Column headers */} @@ -119,12 +123,12 @@ const FeatureSections: React.FC = ({
-

+

{column}

@@ -167,7 +171,7 @@ const FeatureSections: React.FC = ({ }} > {/* Feature name column */} -
+

= ({

= ({ data }) => { {/* Header Row */}
{/* Main content area */} -
+
{data.options.map((option, index) => (
= ({ data }) => { {/* Features and Buttons Row */}