Skip to content

Commit

Permalink
Merge pull request #1665 from ClickHouse/fix-layout-bug
Browse files Browse the repository at this point in the history
Fix layout bug with table of contents
  • Loading branch information
justindeguzman authored Nov 10, 2023
2 parents 5cfa438 + a14902d commit 4cc77fb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,6 @@ hr {
.row {
height: 100%;
}

}

button.DocSearch {
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocItem/Layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function useDocTOC() {
export default function DocItemLayout({children}) {
const docTOC = useDocTOC();
return (
<div className="row">
<div className="row" style={{flexWrap: 'nowrap'}}>
<div className={clsx('col', !docTOC.hidden && styles.docItemCol)}>
<DocVersionBanner />
<div className={styles.docItemContainer}>
Expand Down
8 changes: 1 addition & 7 deletions src/theme/DocItem/TOC/Desktop/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
height: calc(100vh - (var(--ifm-navbar-height) + 2rem));
display: flex;
flex-flow: column nowrap;
top: calc(var(--ifm-navbar-height) + 1rem);
position: sticky;
gap: 24px;
padding-bottom: 3.5rem;
}

.docCloudCard {
Expand Down Expand Up @@ -63,9 +63,3 @@
display: none;
}
}

@media (min-width: 1100px) {
.docCloudCard {
margin-right: 24px;
}
}

0 comments on commit 4cc77fb

Please sign in to comment.