Repository navigation
feat(minimax-pet): 0.8.0 按 design 规则对齐字号与间距 - #128
Merged
Merged
Conversation
MyPrototypeWhat
force-pushed
the
feat/minimax-pet-design-scale
branch
from
November 12, 2026 09:39
6afa1a9 to
babd3af
Compare
MyPrototypeWhat
changed the base branch from
feat/minimax-pet-markdown
to
main
November 12, 2026 09:43
- 面板页边距、区块间距收敛到 24px,区块内 16px;外观预览区圆角 16px → 12px, 宠物卡片 10px → 12px、内边距 12px。 - 正文 14px/22px:任务行、提醒标题、勾选项;辅助文字 12px/18px(.muted/.msg/.note), 设置页标题 16px/24px。 - 控件最小高度 32px:.btn.small、任务筛选、提醒静音按钮;桌面卡片关闭按钮补到 32px 触达区。 - 桌面浮层(气泡、通知卡、菜单)改用 0.5px 描边;通知卡圆角 10px → 12px。 - 补齐按下态(.btn:active、.chip:active、.menu-item:active), prefers-reduced-motion 下保留颜色/透明度反馈而不是全部关闭。 - 版本 0.8.0,README(中英)补充说明。
MyPrototypeWhat
force-pushed
the
feat/minimax-pet-design-scale
branch
from
November 12, 2026 09:44
babd3af to
82f0d9d
Compare
MyPrototypeWhat
marked this pull request as ready for review
November 12, 2026 09:44
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.
按 MiniMax Code 的设计语言对齐桌宠面板的字号与间距:页边距和区块间距统一到 24px,正文 14px/22px、辅助文字 12px/18px,控件最小高度 32px,桌面浮层改 0.5px 描边,并补齐按下态。桌面宠物保持 280px 布局,沿用同一套
--mcode-*token。只动样式,不改变任何行为或权限。这一版叠在 #127(0.7.0 Markdown 渲染)之上,review 顺序是 #124 → #127 → 本 PR。
Written by Claude Opus 5.5
改了什么
依据 agent-archon 里的
.harness/docs/design/design-language.md与miniapp-creator/references/minimax-code-visual-ui.md。mcode 独有的bg-bg_default_primary、--mavis-type-*这类 token 桌宠拿不到,所以只落地了这套规则里能映射到页面自有--mcode-*变量的部分。.panel-header/.panel-tabs/.panel-page/.task-page的 28px 边距改为 24px;外观区主栅格 32px → 24px;子页面栈 20px → 24px;区块标题下边距 18px → 16px。.tab-count)改全圆角。.muted/.msg/.note/ 状态行统一 12px/18px;设置页小标题 14px → 16px/24px;桌面卡片里 10–11px 的辅助文字提到 11–12px。.btn.small28px → 32px,任务筛选 28px → 32px,提醒静音按钮 24px → 32px;桌面卡片关闭按钮补min-width/min-height: 32px触达区,标题栏高 26px → 32px。.btn:active/.chip:active/.menu-item:active;prefers-reduced-motion从「全部 transition: none」改为保留颜色/透明度反馈、只压掉动画时长,符合规则里「保留必要的透明度过渡」。测试
sources/minimax-ai/minimax-pet:npm test250 通过,npm run test:smoke70/70(样式改动不涉及逻辑,测试全绿说明没有误伤选择器或 DOM 契约)。npm run package+npm run check:package:41 个文件逐字节一致;根npm run check:plugins/minimax-ai/minimax-pet: OK。未验证
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.