mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(docs-infra): prevent main content from overlapping with ToC (#42884)
Previously, if there was more content than what would horizontally fit in the main content area, it would overflow to the right and overlap with the Table of Contents (ToC). This was accidentally introduced in #42787. This commit fixes it by ensuring that the main content area will not overlap with ToC and the necessary space for the ToC will be reserved using `margin` (instead of `padding`, which contributes to the element's size). Fixes #42867 PR Close #42884
This commit is contained in:
committed by
Alex Rickabaugh
parent
89893972c8
commit
778edfc63c
@@ -14,7 +14,7 @@ mat-sidenav-container.sidenav-container {
|
||||
|
||||
&.has-floating-toc {
|
||||
.mat-sidenav-content {
|
||||
padding-right: 18vw;
|
||||
margin-right: 18vw;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user