fix(game): 导航像素风统一 + 修复图鉴解锁后面板溢出 - #32
Merged
Merged
Conversation
- 顶部导航的「方法论 / Skill」沿用全局 btn-ghost(斜体衬线圆角胶囊), 与 game 页像素 UI 冲突;改为与「HireRPG game」一致的像素方框样式。 - 图鉴 .cx-slot 默认 min-width:auto,怪兽解锁后真实名字(nowrap)撑宽该列, 使 4 列网格溢出面板 18px,视觉上"撑裂";加 min-width:0;overflow:hidden, 让列等宽、名字交给已有 ellipsis 截断。溢出 18px → 0。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
Author
建议暂无额外建议。已核对 结论:✅ 可以合并 |
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.
背景
HireRPG game 页面(
docs/game.html)两个 UI 问题:方法论/Skill沿用全局githire.css的btn-ghost(斜体衬线 + 圆角胶囊),与 game 页的像素风冲突。根因
图鉴用
repeat(4,1fr)网格,.cx-slot默认min-width:auto。怪兽一旦解锁,槽位出现真实名字(如模糊 Issue 幽灵,white-space:nowrap不换行),把该列从 45px 撑到 76px,整行溢出面板 18px——视觉上即"撑裂"。锁定态全是???等宽,所以问题只在解锁后出现。改动
方法论/Skill改成与🎮 HireRPG game一致的像素方框按钮(像素字体、直角边框、像素阴影 + 按下位移)。.cx-slot加min-width:0; overflow:hidden;,让1fr列保持等宽,长名字交给已有的text-overflow:ellipsis截断。验证(headless 渲染实测)
scrollWidth 242 / clientWidth 224,溢出 18px模糊 I…收尾仅改动
docs/game.html。🤖 Generated with Claude Code