feat: 보유행 3줄 재구성 (뱃지·당일마크·이름·계좌 / 보유·비중 / 태그)

line1=뱃지+당일거래마크(★)+종목명+계좌종류(nowrap, 이름 ellipsis), line2=보유+비중, line3=태그.
미사용 .name-head 제거, .line1-held{flex-wrap:nowrap}로 긴 이름도 1줄 유지.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hyowons
2026-06-08 16:25:07 +09:00
parent af235dca1f
commit c4264a379e
+4 -4
View File
@@ -2667,9 +2667,9 @@ def _render_holding_row(r: dict, total_value: int, show_day_change: bool = False
return f'''<details class="row {pcls} mode-held" data-row-key="{row_key}" data-rt-qty="{qty}" data-rt-cost="{eval_value - profit}" data-rt-px="{price}" data-rt-prevclose="{price - day_change}"> return f'''<details class="row {pcls} mode-held" data-row-key="{row_key}" data-rt-qty="{qty}" data-rt-cost="{eval_value - profit}" data-rt-px="{price}" data-rt-prevclose="{price - day_change}">
<summary> <summary>
<div class="left"> <div class="left">
<div class="line1"><span class="name-head">{_buy_rank_badge(buy_amount)}<span class="stock">{stock}</span></span></div> <div class="line1 line1-held">{_buy_rank_badge(buy_amount)}{star}<span class="stock">{stock}</span><span class="code">{accounts}</span></div>
<div class="line2"><span class="badge held">보유 {qty:,}</span>{_pending_badges_html(r)}<span class="muted small wt-chip">비중 <span class="rt-weight">{weight:.2f}</span>%</span></div> <div class="line2"><span class="badge held">보유 {qty:,}</span>{_pending_badges_html(r)}<span class="muted small wt-chip">비중 <span class="rt-weight">{weight:.2f}</span>%</span></div>
<div class="line3">{tag_chip}{star}<span class="code">{accounts}</span></div> <div class="line3">{tag_chip}</div>
{summary_journal_html} {summary_journal_html}
</div> </div>
<div class="right"> <div class="right">
@@ -4031,8 +4031,8 @@ 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; } .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; } .line1 { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; row-gap: 4px; }
/* 매수등급 배지 + 종목명을 묶음으로 이름 길어도 배지와 분리돼 줄바뀜되지 않게(이름은 ellipsis). */ /* 보유행 1: 뱃지+당일마크+종목명+계좌 고정(nowrap). 이름 길면 .stock ellipsis 줄어듦. */
.name-head { display: flex; align-items: center; gap: 6px; min-width: 0; } .line1-held { flex-wrap: nowrap; }
.stock { font-size: 14px; font-weight: 600; color: #f0f0f0; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 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; } .code { font-size: 11px; color: #5a5f6c; font-weight: 400; flex: none; }