Skip to content

Commit 1d48e9b

Browse files
Piotr Kumoreksidharthachatterjee
Piotr Kumorek
authored andcommitted
fix(www): Fix Compare with Gatsby button on smaller breakpoints (#19063)
1 parent 66451f9 commit 1d48e9b

File tree

2 files changed

+34
-29
lines changed

2 files changed

+34
-29
lines changed

www/src/pages/features/cms.js

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,30 @@ const CmsFeaturesPage = ({ data, location }) => {
5151
technologies, choose the technologies to compare and then press
5252
Compare:
5353
</p>
54-
<div
55-
sx={{
56-
display: `grid`,
57-
gridTemplateColumns: `repeat(auto-fit, minmax(75px, 120px))`,
58-
gridGap: 2,
59-
pb: 10,
60-
}}
61-
>
62-
{featureComparisonOptions.cms.map(({ key: optionKey, display }) => (
63-
<CompareButton
64-
key={optionKey}
65-
optionKey={optionKey}
66-
selected={selected[optionKey]}
67-
setSelected={setSelected}
68-
>
69-
{display}
70-
</CompareButton>
71-
))}
54+
<div sx={{ pb: 10 }}>
55+
<div
56+
sx={{
57+
display: `grid`,
58+
gridTemplateColumns: `repeat(auto-fit, minmax(75px, 1fr))`,
59+
gridAutoRows: `1fr`,
60+
gridGap: 2,
61+
pb: 4,
62+
}}
63+
>
64+
{featureComparisonOptions.cms.map(
65+
({ key: optionKey, display }) => (
66+
<CompareButton
67+
key={optionKey}
68+
optionKey={optionKey}
69+
selected={selected[optionKey]}
70+
setSelected={setSelected}
71+
>
72+
{display}
73+
</CompareButton>
74+
)
75+
)}
76+
</div>
7277
<Button
73-
overrideCSS={{ whiteSpace: `pre-wrap` }}
7478
to={
7579
hasSelected
7680
? `/features/cms/gatsby-vs-${comparators.join(`-vs-`)}`

www/src/pages/features/jamstack.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ const JamstackFeaturesPage = ({ data, location }) => {
5454
technologies, choose the technologies to compare and then press
5555
Compare:
5656
</p>
57+
5758
<div
5859
sx={{
5960
display: `grid`,
6061
gridTemplateColumns: `repeat(auto-fit, minmax(75px, 1fr))`,
6162
gridAutoRows: `1fr`,
6263
gridGap: 2,
64+
pb: 4,
6365
}}
6466
>
6567
{featureComparisonOptions.jamstack.map(
@@ -74,17 +76,16 @@ const JamstackFeaturesPage = ({ data, location }) => {
7476
</CompareButton>
7577
)
7678
)}
77-
<Button
78-
overrideCSS={{ whiteSpace: `pre-wrap` }}
79-
to={
80-
hasSelected
81-
? `/features/jamstack/gatsby-vs-${comparators.join(`-vs-`)}`
82-
: location.pathname
83-
}
84-
>
85-
Compare with Gatsby
86-
</Button>
8779
</div>
80+
<Button
81+
to={
82+
hasSelected
83+
? `/features/jamstack/gatsby-vs-${comparators.join(`-vs-`)}`
84+
: location.pathname
85+
}
86+
>
87+
Compare with Gatsby
88+
</Button>
8889
<EvaluationTable
8990
options={featureComparisonOptions.jamstack}
9091
sections={sections}

0 commit comments

Comments
 (0)