Skip to content

Commit

Permalink
fix(v2): remove horizontal scroll on docs page
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Apr 11, 2020
1 parent a8ab0d6 commit a4695f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function DocItem(props) {
{permalink && <meta property="og:url" content={siteUrl + permalink} />}
</Head>
<div className="padding-vert--lg">
<div className="container">
<div className={classnames('container', styles.docItemWrapper)}>
<div className="row">
<div className={classnames('col', styles.docItemCol)}>
<div className={styles.docItemContainer}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
}
}

@media (min-width: 997px) and (max-width: 1320px) {
.docItemWrapper {
max-width: calc(
var(--ifm-container-width) - 300px - var(--ifm-spacing-horizontal) * 2
);
}
}

.tableOfContents {
display: inherit;
max-height: calc(100vh - (var(--ifm-navbar-height) + 2rem));
Expand Down

0 comments on commit a4695f5

Please sign in to comment.