mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-07 14:58:23 +08:00
fix(frontend): 修复渠道监控时间线在窄卡片下溢出
MonitorTimeline 每根柱子设置了 min-w-[3px],60 根柱子加 2px 间距的 最小总宽度为 298px。当卡片内容区宽度低于该值时(如 100% 缩放下的 部分布局),时间线整体溢出卡片边缘。改为 min-w-0 让柱子随容器等分 压缩,任意宽度下均不再溢出。
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<div
|
||||
v-for="(bar, idx) in displayBars"
|
||||
:key="idx"
|
||||
class="flex-1 min-w-[3px] rounded-sm"
|
||||
class="flex-1 min-w-0 rounded-sm"
|
||||
:class="bar.colorClass"
|
||||
:style="{ height: bar.heightPct + '%' }"
|
||||
:title="bar.title"
|
||||
|
||||
Reference in New Issue
Block a user