fix mobile overflow issue (#468)

main
Jake Dexheimer 6 years ago committed by Michael Fix
parent 22f2ea673e
commit b7c8466711

@ -113,8 +113,7 @@ class Carbon extends PureComponent {
#container { #container {
position: relative; position: relative;
min-width: ${config.widthAdjustment ? '90px' : '680px'}; min-width: ${config.widthAdjustment ? '90px' : '680px'};
max-width: 1024px; /* The Fallback */ max-width: 1024px;
max-width: 92vw;
padding: ${config.paddingVertical} ${config.paddingHorizontal}; padding: ${config.paddingVertical} ${config.paddingHorizontal};
} }

@ -32,13 +32,6 @@ const Header = ({ enableHeroText }) => (
h2 { h2 {
text-align: center; text-align: center;
max-width: 80vw;
}
@media only screen and (max-width: 756px) {
h2 {
font-size: 2.8vw;
}
} }
`} `}
</style> </style>

@ -18,7 +18,6 @@ export default () => {
<Head> <Head>
<meta charSet="utf-8" /> <meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" /> <meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta <meta
name="description" name="description"
content="Carbon is the easiest way to create and share beautiful images of your source code." content="Carbon is the easiest way to create and share beautiful images of your source code."

@ -18,6 +18,7 @@ export default ({ children, enableHeroText }) => (
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
min-width: 1080px; // temporary fix for mobile overflow issue
} }
`} `}
</style> </style>

@ -145,7 +145,6 @@ export default () => (
font-style: normal; font-style: normal;
text-transform: initial; text-transform: initial;
letter-spacing: initial; letter-spacing: initial;
overflow-y: auto;
/* min-width: 848px; */ /* min-width: 848px; */
min-height: 704px; min-height: 704px;
} }

@ -31,7 +31,7 @@ export default () => (
body { body {
font-size: var(--h4); font-size: var(--h4);
line-height: var(--lh); line-height: var(--lh);
margin: 2rem 0; margin: 6rem 0;
} }
h1, h1,

Loading…
Cancel
Save