From e1fd6a7e84681d09776ce6722bd3f0fdb294ab9d Mon Sep 17 00:00:00 2001 From: hyowons Date: Wed, 10 Jun 2026 11:13:17 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=B0=A8=ED=8A=B8=20=EC=BB=A8?= =?UTF-8?q?=ED=8A=B8=EB=A1=A4=202=EC=A4=84=20=EB=B6=84=EB=A6=AC=20+=20?= =?UTF-8?q?=EC=A7=80=EC=A0=95=EA=B8=B0=EA=B0=84=20=EB=8B=A8=EC=9C=84=20?= =?UTF-8?q?=EC=9D=BC=EB=B3=84=20=EA=B3=A0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 1번째 줄: 기간/단위/차트타입(모드) 유지. 지정기간 선택 시 단위 일별 고정(비활성). - 2번째 줄(지정기간일 때만 노출): 유형(연도별/월별) / 연도 / 월. - 유형=연도별이면 월 드롭다운 '-' 표시·비활성, 월별이면 월 활성. - 연도별도 단위 일별 → 그 해 전체 일별 차트(기존 월별집계에서 변경). - CSS: .chart-controls 컬럼 레이아웃 + .cc-line 행, .cc-line-ym[hidden] 숨김. Co-Authored-By: Claude Opus 4.8 --- agents/stock/workspace/scripts/behive_web.py | 49 ++++++++++++-------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/agents/stock/workspace/scripts/behive_web.py b/agents/stock/workspace/scripts/behive_web.py index 7895d2c..d623915 100644 --- a/agents/stock/workspace/scripts/behive_web.py +++ b/agents/stock/workspace/scripts/behive_web.py @@ -4979,9 +4979,10 @@ table.market-adr td.adr-breakdown { font-size: 11px; color: #8b8f9a; } .holdings-toggle-wrap { margin-top: 4px; } /* 차트 컨트롤 — 자산정보 탭 상단의 공통 기간·단위 select 묶음. */ -.chart-controls { display: flex; gap: 10px; margin: 10px 14px 4px; flex-wrap: wrap; } +.chart-controls { display: flex; flex-direction: column; gap: 6px; margin: 10px 14px 4px; } +.chart-controls .cc-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } +.chart-controls .cc-line-ym[hidden] { display: none; } /* 지정기간 아닐 때 2번째 줄 숨김 ([hidden] UA 스타일이 flex에 가려지지 않도록 명시) */ .chart-controls .cc-field { display: flex; align-items: center; gap: 6px; } -.chart-controls .cc-ym[hidden] { display: none; } /* 연도별/월별 아닐 때 연·월 드롭다운 숨김 ([hidden] UA 스타일이 flex에 가려지지 않도록 명시) */ .chart-controls .cc-label { color: #8b8f9a; font-size: 11px; } .chart-controls .nw-select { appearance: none; -webkit-appearance: none; @@ -5172,14 +5173,20 @@ def _render_chart_controls(selected_days: int, selected_unit: str, selected_mode f'' for y in years ) - month_opts = ''.join( - f'' - for m in months_map.get(cur_year, []) - ) + # 월 — 월별일 때만 실제 월 목록(활성), 연도별이면 '-' 한 칸 비활성. + if is_month: + month_opts = ''.join( + f'' + for m in months_map.get(cur_year, []) + ) + _month_dis = '' + else: + month_opts = '' + _month_dis = ' disabled' _customhide = '' if period_active else ' hidden' - _mhide = '' if is_month else ' hidden' months_json = html.escape(json.dumps(months_map, ensure_ascii=False), quote=True) + # 지정기간은 단위 일별 고정 → 단위 select 비활성, '일별' 선택 표시. unit_opts = ''.join( f'