feat: 계좌명 종목명 옆(작게), 태그 보유 왼쪽, ★ 비중 오른쪽
line1=뱃지+종목명+계좌명(작게), line2=태그+보유+비중%+★. line3 제거(2줄). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -2677,9 +2677,8 @@ 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}">
|
||||
<summary>
|
||||
<div class="left">
|
||||
<div class="line1 line1-held">{_buy_rank_badge(buy_amount)}<span class="{stock_cls}">{stock}</span></div>
|
||||
<div class="line2">{star}<span class="badge held">보유 {qty:,}주</span>{_pending_badges_html(r)}<span class="muted small wt-chip"><span class="rt-weight">{weight:.2f}</span>%</span><span class="code">{acct_label}</span></div>
|
||||
<div class="line3">{tag_chip}</div>
|
||||
<div class="line1 line1-held">{_buy_rank_badge(buy_amount)}<span class="{stock_cls}">{stock}</span><span class="code acct-mini">{acct_label}</span></div>
|
||||
<div class="line2">{tag_chip}<span class="badge held">보유 {qty:,}주</span>{_pending_badges_html(r)}<span class="muted small wt-chip"><span class="rt-weight">{weight:.2f}</span>%</span>{star}</div>
|
||||
{summary_journal_html}
|
||||
</div>
|
||||
<div class="right">
|
||||
@@ -4043,6 +4042,7 @@ details.row + .section-label { margin-top: 14px; padding-top: 24px; border-top-c
|
||||
.line1 { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; row-gap: 4px; }
|
||||
/* 보유행 1줄: 뱃지+당일마크+종목명+계좌 한 줄 고정(nowrap). 이름 길면 .stock 이 ellipsis 로 줄어듦. */
|
||||
.line1-held { flex-wrap: nowrap; }
|
||||
.acct-mini { font-size: 10px; color: #7a7f8c; flex: none; } /* 종목명 오른쪽 계좌명 작게 */
|
||||
.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.stock-sm { font-size: 12px; } /* 이름 10자+ */
|
||||
.stock.stock-xs { font-size: 10.5px; } /* 이름 14자+ */
|
||||
|
||||
Reference in New Issue
Block a user