Repository navigation
fix(Dashboard): 供应商请求分布卡图形区下限降为 180px,3 行订阅时两卡等高 - #320
Merged
Merged
Conversation
分布卡图形区 min-height 为 250px,加上标题与内边距后下限 329px,高过 3 行订阅卡的 269px,整行被撑高,订阅卡底部留白 81px。下限改为 180px:3 行时两卡同为 269px,4 行与 8 行订阅时与改前逐像素一致,堆叠档不受影响。测试钉住下限不超过 190px。 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 28, 2026
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.
变更摘要
Overview 并排的「供应商请求分布」卡,图形区最小高度从 250px 降为 180px,订阅状态只有 3 行时两卡等高(都是 269px),环图随之缩小,订阅卡底部不再留白。
动机
订阅卡只有 3 行时,分布卡因图形区下限 250px(加标题与内边距共 329px)高过订阅卡的 269px,网格把整行撑高,订阅卡底部多出约 81px 空白。README 首图用的是 4 行订阅(333px),所以之前没暴露。
改动
src/coding/proxy/server/dashboard.py:.dist-card .chart-wrap的min-height由 250px 改为 180px,注释写明上限 190px 的算法(3 行订阅卡 269px 减去分布卡标题与内边距 79px)。tests/test_dashboard_overview.py:test_overview_css_constraints增加断言,图形区下限不超过 190px。docs/.agents/issue.md:登记 I-016。验证
风险点
🤖 Generated with Claude Code