From f9f43762cfbff3586cd287ab891c941e8d8de7db Mon Sep 17 00:00:00 2001 From: hyowons Date: Mon, 8 Jun 2026 16:09:47 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B3=B4=EC=9C=A0=ED=96=89=20=EA=B8=B4?= =?UTF-8?q?=20=EC=A2=85=EB=AA=A9=EB=AA=85=20=EC=A4=84=EB=B0=94=EB=80=9C(?= =?UTF-8?q?=EB=B0=B0=EC=A7=80/=EC=9D=B4=EB=A6=84=20=EB=B6=84=EB=A6=AC)=20?= =?UTF-8?q?=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit line1이 flex-wrap이라 이름 길면 종목명이 다음줄로 내려가 매수등급 배지만 윗줄에 남음(KODEX AI핵심전력설비 등). 배지+이름을 .name-head로 묶고 이름은 min-width:0 ellipsis 처리 → 한 묶음 유지, 길면 잘림. Co-Authored-By: Claude Opus 4.8 --- agents/stock/workspace/scripts/behive_web.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/agents/stock/workspace/scripts/behive_web.py b/agents/stock/workspace/scripts/behive_web.py index 4a7ee59..96f3990 100644 --- a/agents/stock/workspace/scripts/behive_web.py +++ b/agents/stock/workspace/scripts/behive_web.py @@ -2667,7 +2667,7 @@ def _render_holding_row(r: dict, total_value: int, show_day_change: bool = False return f'''
-
{_buy_rank_badge(buy_amount)}{stock}{tag_chip}{star}{accounts}
+
{_buy_rank_badge(buy_amount)}{stock}{tag_chip}{star}{accounts}
보유 {qty:,}주{_pending_badges_html(r)}비중 {weight:.2f}%
{summary_journal_html}
@@ -4030,7 +4030,9 @@ details.row + .section-label { margin-top: 14px; padding-top: 24px; border-top-c .right { text-align: right; display: flex; flex-direction: column; gap: 2px; align-items: flex-end; justify-content: center; } .line1 { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; row-gap: 4px; } -.stock { font-size: 14px; font-weight: 600; color: #f0f0f0; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +/* 매수등급 배지 + 종목명을 한 묶음으로 — 이름 길어도 배지와 분리돼 줄바뀜되지 않게(이름은 ellipsis). */ +.name-head { display: flex; align-items: center; gap: 6px; min-width: 0; } +.stock { font-size: 14px; font-weight: 600; color: #f0f0f0; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .code { font-size: 11px; color: #5a5f6c; font-weight: 400; flex: none; } .line2 { display: flex; align-items: center; gap: 8px; font-size: 12px; min-width: 0; }