fix(HEL-217): 限制温度走势图高度,按左栏对齐右侧并保留夜间提示

撤掉图表随右栏无限拉伸的布局,恢复一屏内的成熟比例;右侧两卡跟随左栏高度,夜间 tooltip 改用主题变量。

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
总工
2026-08-28 14:05:41 +00:00
co-authored by Cursor multica-agent
parent 8a5e78f022
commit b11ac6965f
3 changed files with 242 additions and 0 deletions
+5
View File
@@ -343,6 +343,11 @@ class FrontendContractTests(unittest.TestCase):
self.assertIn("--sentiment-history-max-height: 510px;", self.tokens)
self.assertIn("max-height: var(--sentiment-history-max-height);", self.sentiment_styles)
self.assertIn("overflow: auto;", self.sentiment_styles)
self.assertIn("height: min(350px, 40vh);", self.sentiment_styles)
self.assertIn(':root[data-theme="dark"] #sentimentCycleView .sentiment-chart-tooltip {', self.sentiment_styles)
self.assertIn("background: var(--surface-muted);", self.sentiment_styles)
self.assertIn("color: var(--text-primary);", self.sentiment_styles)
self.assertNotIn("flex: 1 1 auto;\n\n height: auto;", self.sentiment_styles)
def test_mentor_final_visual_fix_contract(self):
shell_styles = (STATIC_DIR / "shared" / "shell.css").read_text(encoding="utf-8")