Skip to content

Commit 0ce52ad

Browse files
authored
docs(main): optimize mobile adaptation (#3683)
1 parent 3c4e0a5 commit 0ce52ad

File tree

7 files changed

+20
-5
lines changed

7 files changed

+20
-5
lines changed

.changeset/dirty-moose-talk.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@modern-js/main-doc': patch
3+
'@modern-js/doc-core': patch
4+
---
5+
6+
docs(main): optimize mobile adaptation
7+
8+
docs(main): 优化移动端适配

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
position: relative;
2626
}
2727
.content {
28-
padding: 12px 24px 72px 24px;
28+
padding: 36px 24px 72px 24px;
2929
}
3030
}
3131

packages/document/main-doc/docs/en/community/blog/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Since React 18, React supports a new type of SSR (streaming SSR) and it brought
3434

3535
To understand its design further, check out this [Github Discussion](https://github.com/reactwg/react-18/discussions/37) by Dan Abramov or watch this [talk](https://www.youtube.com/watch?v=pj5N-Khihgc).
3636

37-
Or read more from us at [here(Further content in English under construction)](<[communityreact-streaming-ssr](https://mp.weixin.qq.com/s/w4FS5sBcHqRl-Saqi19Y6g)>) or [here](/community/blog/react-streaming-ssr).
37+
Or read more from us at [here(Further content in English under construction)](https://mp.weixin.qq.com/s/w4FS5sBcHqRl-Saqi19Y6g).
3838

3939
---
4040

packages/document/main-doc/docs/en/guides/concept/builder.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ From the perspective of building, Modern.js is divided into three layers, from t
1616
- Universal build engine: Modern.js Builder.
1717
- Low-level bundlers: webpack and rspack.
1818

19-
<img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/builder-layers-1117.png" style={{ maxWidth: '540px' }} />
19+
<img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/builder-layers-1117.png" style={{ width: '100%', maxWidth: '540px' }} />
2020

2121
## Builder Documentation
2222

packages/document/main-doc/docs/zh/guides/concept/builder.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Modern.js Builder 是 Modern.js 体系的核心组件之一,它是一个面向
1616
- 通用构建引擎:Modern.js Builder。
1717
- 底层打包工具:webpack 和 rspack。
1818

19-
<img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/builder-layers-1117.png" style={{ maxWidth: '540px' }} />
19+
<img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/builder-layers-1117.png" style={{ width: '100%', maxWidth: '540px' }} />
2020

2121
## 构建文档
2222

packages/document/main-doc/src/components/SolutionCards/index.module.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@
4242
}
4343
}
4444

45+
@media (max-width: 480px) {
46+
.card {
47+
flex: 0 1 100%;
48+
margin-bottom: 16px;
49+
}
50+
}
51+
4552
.title {
4653
font-size: 16px;
4754
font-weight: 600;

packages/document/main-doc/src/pages/index.module.scss

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

154154
@media screen and (max-width: 540px) {
155155
.title {
156-
font-size: 9vw;
156+
font-size: 8vw;
157157
}
158158
}
159159

0 commit comments

Comments
 (0)