Skip to content

Commit

Permalink
Add left margin for small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
cpathipa committed Nov 9, 2023
1 parent 3d2f5f3 commit 33c441d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Grid from '@mui/material/Unstable_Grid2';
import { styled, useTheme } from '@mui/material/styles';
import { Theme, styled, useTheme } from '@mui/material/styles';
import useMediaQuery from '@mui/material/useMediaQuery';
import * as React from 'react';

import BetaFeedbackIcon from 'src/assets/icons/icon-feedback.svg';
Expand Down Expand Up @@ -59,6 +60,8 @@ export const LandingHeader = ({
const renderActions = Boolean(onButtonClick || extraActions);
const labelTitle = title?.toString();

const xsDown = useMediaQuery((theme: Theme) => theme.breakpoints.down('sm'));

const docsAnalyticsLabel = analyticsLabel
? analyticsLabel
: `${title} Landing`;
Expand Down Expand Up @@ -92,6 +95,7 @@ export const LandingHeader = ({
{betaFeedbackLink && (
<span
style={{
marginLeft: xsDown ? `${theme.spacing(2)}` : undefined,
marginRight: `${theme.spacing(2)}`,
}}
>
Expand Down

0 comments on commit 33c441d

Please sign in to comment.