Skip to content

Commit fb8a45a

Browse files
committed
Tighten mobile articles archive
1 parent 93fac7b commit fb8a45a

6 files changed

Lines changed: 47 additions & 12 deletions

File tree

‎docs/agent/articles.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Articles should feel like a quiet paper archive and readable stream, not a card-
1818
- Do not rename the page back to `技术文章` unless explicitly requested.
1919
- Do not convert the article archive into a dense card grid.
2020
- Keep title, date, description hierarchy clear.
21+
- On mobile article archives, keep the hero compact enough that topic links and the first article enter early.
2122
- Long Chinese titles, English technical terms, and identifiers like `use_case` must wrap naturally.
2223
- Code blocks and inline code must be readable without looking accidentally selected.
2324
- If editing shared `.entry-*` styles, regression-test homepage, tag results, pagination, and article detail pages.

‎docs/improvement-progress.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
- 进行:Round 8 覆盖 About、Portfolio、Tags、Articles 和 Home,定位到 Tags 移动端 hero/统计区过重,标签列表进入视口偏晚。
4343
- 完成:Tags 移动端压缩标题、引导、统计和列表入口间距,版本号提升到 `0.0.9`。
4444
- 验证:Round 8 Tags 首条标签在 390px 下 `y=314px` 进入视口,42 个标签保留,桌面与移动端无横向溢出;`npm run check:content-health`、`npm run build`、`git diff --check` 通过。
45+
- 进行:Round 9 基于文章归档移动端截图,定位到大标题三行换行导致文章入口偏低。
46+
- 完成:文章归档仅压缩移动端 hero 标题、引导、主题链接和列表入口间距,版本号提升到 `0.0.10`。
47+
- 验证:Round 9 文章首条在 390px 下 `y=562px` 进入视口,主题链接保留,桌面与移动端无横向溢出;`npm run check:content-health`、`npm run build`、`git diff --check` 通过。
4548

4649
### 2026-02-26
4750
- 完成:建立执行版改进计划,按“文档基线 -> 技术债 -> UI/UX”重排优先级。
@@ -65,5 +68,5 @@
6568
- 质量校验命令:`npm run check:docs-baseline`
6669
- 内容治理命令:`npm run check:content-health`
6770
- 安全校验命令:`npm run check:security`
68-
- 最近结果:`189 page(s) built in 1.48s`,`content health: 0 errors / 0 warnings`,`tags mobile entry verified`,`audit: 5 remaining vulnerabilities requiring breaking --force fixes`
71+
- 最近结果:`189 page(s) built in 1.49s`,`content health: 0 errors / 0 warnings`,`articles mobile hero verified`,`audit: 5 remaining vulnerabilities requiring breaking --force fixes`
6972
- 最近验证日期:2026-06-22

‎docs/uiux-20-round-log.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@
22

33
This log tracks the repeated screenshot-led UI/UX improvement rounds for Joey's Notes.
44

5+
## Round 9 - 2026-06-22 - Articles Mobile Hero Density
6+
7+
Evidence:
8+
9+
- Baseline screenshots: `/private/tmp/oiahoon-uiux-round-08/articles-390x844.png`, `/private/tmp/oiahoon-uiux-round-08/articles-1440x900.png`
10+
- Reviewed route: `/articles/`
11+
- Viewports: `1440x900`, `390x844`
12+
13+
Findings:
14+
15+
- The article archive is correctly text-first and has no horizontal overflow.
16+
- On mobile, the large English hero title wrapped into multiple lines and pushed topic links and the first article lower than necessary.
17+
18+
Changes:
19+
20+
- Reduced mobile-only article archive top margin, title scale, lede spacing, topic-link gap, and stream entry gap.
21+
- Kept the desktop article archive, text stream, and tag-link structure unchanged.
22+
- Bumped the app version to `0.0.10`.
23+
24+
Validation plan:
25+
26+
Results:
27+
28+
- Final screenshots: `/private/tmp/oiahoon-uiux-round-09-after/`
29+
- Articles archive: first article enters at `y=562px` on `390x844`, topic links remain available, and there is no horizontal overflow at desktop or mobile widths.
30+
- `npm run check:content-health`: passed, 120 posts scanned, 0 errors, 0 warnings.
31+
- `npm run build`: passed, 189 pages built in 1.49s.
32+
- `git diff --check`: passed.
33+
- `npm run check:security`: still reports the same 5 remaining vulnerabilities that require breaking `npm audit fix --force`.
34+
535
## Round 8 - 2026-06-22 - Tags Mobile Entry Density
636

737
Evidence:

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "joey-notes-astro",
33
"type": "module",
4-
"version": "0.0.9",
4+
"version": "0.0.10",
55
"scripts": {
66
"dev": "astro dev",
77
"build": "astro build",

‎src/pages/articles.astro‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,26 +159,27 @@ const shouldShowTopicLinks = topTags.length >= 3;
159159

160160
@media (max-width: 640px) {
161161
.articles-page {
162-
margin-top: 2.35rem;
162+
margin-top: 1.75rem;
163163
}
164164

165165
.articles-title {
166-
margin-top: 0.8rem;
167-
font-size: clamp(2.4rem, 13vw, 3.8rem);
166+
margin-top: 0.65rem;
167+
font-size: clamp(2.18rem, 11.2vw, 3.15rem);
168+
line-height: 1;
168169
}
169170

170171
.articles-lede {
171-
margin-top: 0.85rem;
172-
font-size: 0.98rem;
173-
line-height: 1.7;
172+
margin-top: 0.72rem;
173+
font-size: 0.94rem;
174+
line-height: 1.65;
174175
}
175176

176177
.articles-topic-links {
177178
display: grid;
178179
grid-template-columns: repeat(2, minmax(0, 1fr));
179180
justify-content: stretch;
180181
gap: 0.35rem 1rem;
181-
margin-top: 1.2rem;
182+
margin-top: 0.95rem;
182183
}
183184

184185
.articles-topic-link {
@@ -196,7 +197,7 @@ const shouldShowTopicLinks = topTags.length >= 3;
196197
}
197198

198199
.articles-stream {
199-
margin-top: 1.9rem;
200+
margin-top: 1.55rem;
200201
}
201202
}
202203
</style>

0 commit comments

Comments
 (0)