Skip to content

Commit 51f150a

Browse files
authored
fix(theme-default): heading anchor doesn't display when no sidebar or minimum content area (#1096)
1 parent 9dc7f99 commit 51f150a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/theme-default/src/layout/DocLayout/docComponents/index.module.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
outline: none;
55
:global(.header-anchor) {
66
float: left;
7-
margin-left: -0.87em;
8-
padding-right: 0.23em;
7+
margin-left: -0.8em;
98
font-weight: 500;
109
opacity: 0;
1110
font-size: inherit;

packages/theme-default/src/layout/DocLayout/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
.content {
8383
width: calc(100% - var(--rp-sidebar-width));
84-
padding: 48px 48px 72px max(12px, calc(48px - var(--rp-sidebar-width)));
84+
padding: 48px 48px 72px max(24px, calc(48px - var(--rp-sidebar-width)));
8585

8686
:global(.rspress-doc),
8787
:global(.rspress-doc-footer) {

0 commit comments

Comments
 (0)