Skip to content

Commit 5e0d3dd

Browse files
committed
remove unintended white space on mobile
when viewing the webstore on mobile, or inspecting from the browser using a mobile device, there was extra white space alone the right side of the page. turns out that the ItemGroup component was causing it. we're using a bootstrap grid class that was adding x/y gutters in between each item. this commit removes the horizontal (x) gutter, opting only for the vertical (y) gutter. the page still looks good on desktop too. - ref: https://getbootstrap.com/docs/5.0/layout/gutters/ - ref: #211
1 parent 46cbcc0 commit 5e0d3dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compounds/ItemGroup/ItemGroup.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import './item-group.scss'
99
const ItemGroup = ({ buttonProps, items, isLoading, orientation, withButtonLink, withTitleLink }) => (
1010
<>
1111
<Title addClass='mb-2' size='large' title='Featured Services' />
12-
<Row xs={1} sm={2} className={`g-5 mb-5 ${orientation === 'vertical' && 'row-cols-md-3'}`} data-cy='item-group'>
12+
<Row xs={1} sm={2} className={`gy-5 mb-5 ${orientation === 'vertical' && 'row-cols-md-3'}`} data-cy='item-group'>
1313
{isLoading
1414
? (
1515
<>

0 commit comments

Comments
 (0)