Skip to content

Commit 6e8a6a8

Browse files
authored
fix(theme): adjust rspress doc max width (#737)
1 parent 8662458 commit 6e8a6a8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/great-buttons-dress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rspress/theme-default': patch
3+
---
4+
5+
fix: adjust rspress doc max width

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
padding: 0 48px;
108108
box-sizing: border-box;
109109
width: calc(100vw - var(--rp-sidebar-width) - var(--rp-aside-width));
110-
max-width: calc(960px + 48px * 2);
110+
max-width: min(100%, calc(960px + 48px * 2));
111111
margin: auto;
112112
}
113113
}
@@ -125,7 +125,7 @@
125125
box-sizing: border-box;
126126
width: calc(100vw - var(--rp-sidebar-width) - var(--rp-aside-width));
127127
padding: 0 48px;
128-
max-width: calc(960px + 48px * 2);
128+
max-width: min(100%, calc(960px + 48px * 2));
129129
margin: auto;
130130
}
131131
}

0 commit comments

Comments
 (0)