fix(fuwari): 移动端首页文章列表布局与横向溢出#3982
Merged
tangly1024 merged 1 commit intomainfrom May 2, 2026
Merged
Conversation
- Allow meta row and tags to wrap below lg breakpoint; break long titles - Add min-w-0/max-w-full width constraints on main, section, list and cards Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
移动端(含平板单列布局)下,Fuwari 主题首页文章列表卡片视觉上未居中,易出现一侧留白、另一侧顶出或横向溢出。
原因
.fuwari-meta-row使用white-space: nowrap,日期、分类、标签被强制单行排列,在窄屏下撑大行框最小宽度。min-w-0/max-w-full,网格子项无法按视口正确收缩(flex/grid 默认min-width: auto)。修改
max-width: 1023px(与主题lg单列布局一致)下:元数据行与标签允许换行;标题链接增加overflow-wrap/word-break,避免长字符串撑破布局。#posts-wrapper、其中article、main、内容section与PostList卡片链补充width/min-width/max-width约束。PostList内层网格容器增加w-full min-w-0。验证建议
padding对称。