From fb707d5a960200978879252a1931bbb45189f0f1 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Tue, 27 Oct 2026 00:06:32 +0900 Subject: [PATCH] =?UTF-8?q?fix(B05=C2=B7B06):=20=EC=9C=A0=EB=A6=AC=20?= =?UTF-8?q?=EB=8B=A8=EC=B6=94=20=C2=B7=20[=EC=A0=81=EC=9A=A9]=20=EB=86=92?= =?UTF-8?q?=EC=9D=B4=EB=A5=BC=20=EB=8B=A8=EC=97=90=20=EB=A7=9E=EC=B6=A4=20?= =?UTF-8?q?=E2=80=94=20=EC=95=84=EC=9D=B4=EC=BD=98=EB=A7=8C=20=EB=93=A0=20?= =?UTF-8?q?=EC=9C=A0=EB=A6=AC=20=EB=8B=A8=EC=B6=94=20=EA=B7=B8=EB=A6=BC=20?= =?UTF-8?q?=EA=B0=90=EC=8C=88=20=C2=B7=20=EB=B0=B0=EC=88=98=20=EC=A0=9C?= =?UTF-8?q?=EC=95=88=20=EB=A8=B8=EB=A6=AC=20=EB=8B=A8=EC=B6=94=20=EC=95=88?= =?UTF-8?q?=20=EB=88=8C=EB=A6=BC=20(PLAN=20553-8=20=E2=91=A1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 되돌리기 · 다시하기 · 회전 아이콘을 .ui-btn__icon 으로 싸서 냄: B05 도구줄 32 → 34 · 종단 도구줄 18 → 22 가 단 그대로 32 · 18 - 배수 제안 머리 줄 [적용] · [넣기] · [닫기] flex none · nowrap: 제목이 길면 두 줄로 눌려 22 → 34 가 22 그대로 - 시험 test_553_8_glass_height 새 Co-Authored-By: Claude Sonnet 5.5 --- .../B05_Profile_UI_RouteEdit_Chrome.ts | 16 +++++----- B05_Profile/B05_Profile_UI_Style_Drainage.css | 6 ++++ resources/tester/test_553_8_glass_height.py | 30 +++++++++++++++++++ 3 files changed, 44 insertions(+), 8 deletions(-) create mode 100644 resources/tester/test_553_8_glass_height.py diff --git a/B05_Profile/B05_Profile_UI_RouteEdit_Chrome.ts b/B05_Profile/B05_Profile_UI_RouteEdit_Chrome.ts index bd281e2dc..2e86d1fd4 100644 --- a/B05_Profile/B05_Profile_UI_RouteEdit_Chrome.ts +++ b/B05_Profile/B05_Profile_UI_RouteEdit_Chrome.ts @@ -27,23 +27,23 @@ import { bottomRowNarrow, infoLiftPx } from "./logic/B05_Profile_RouteEdit_InfoL /** 회전 단추 아이콘 — **반만 도는 화살표**(2026-09-12 사용자 지시 ㉙). 한 바퀴를 다 그린 * 기호(`↺`·`↻`)는 「한 바퀴 돈다」로 읽혀 한 칸씩 도는 동작과 안 맞았다. */ export const HALF_TURN_ICON = { - ccw: ``, + cw: ``, + `, }; /** 되돌리기 · 다시하기 아이콘 — **곧은 꼬리 + 갈고리**(↩ ↪ · 요구 241-9). 둥근 화살표(`↶`·`↷`)는 * 회전 단추와 헷갈렸다. 종단 도구줄도 같은 그림. */ export const HISTORY_ICON = { - undo: ``, + redo: ``, + `, }; export interface RouteEditChrome { diff --git a/B05_Profile/B05_Profile_UI_Style_Drainage.css b/B05_Profile/B05_Profile_UI_Style_Drainage.css index ddffdc834..ca8469929 100644 --- a/B05_Profile/B05_Profile_UI_Style_Drainage.css +++ b/B05_Profile/B05_Profile_UI_Style_Drainage.css @@ -254,6 +254,12 @@ justify-content: space-between; } +/* 제목이 길어도 단추가 눌려 두 줄(34)이 되지 않게 — 단 22 그대로 */ +.b05-drainage__suggest-head > .ui-btn { + flex: none; + white-space: nowrap; +} + .b05-drainage__suggest-list { max-height: 6em; margin: var(--spacing-8) 0 0; diff --git a/resources/tester/test_553_8_glass_height.py b/resources/tester/test_553_8_glass_height.py new file mode 100644 index 000000000..93eed2798 --- /dev/null +++ b/resources/tester/test_553_8_glass_height.py @@ -0,0 +1,30 @@ +"""553-8 ② B05 · B06 유리 단추 · [적용] 높이 = 단 지킴 시험 — 화면 실측은 Playwright(자기 tmp). + +① 아이콘만 든 유리 단추의 그림은 `.ui-btn__icon` 으로 싸서 냄(맨 svg 는 단 높이를 밀어 32 → 34 · 18 → 22) +② 배수 제안 머리 줄 단추는 눌리지 않음(두 줄 되면 22 → 34) +""" + +from __future__ import annotations + +import re +from pathlib import Path + +B05 = Path(__file__).resolve().parents[2] / "B05_Profile" + + +def test_아이콘_단추_그림은_부품_아이콘으로_쌈(): + src = (B05 / "B05_Profile_UI_RouteEdit_Chrome.ts").read_text(encoding="utf-8") + block = re.search( + r"export const HALF_TURN_ICON = \{.*?\n\};\n.*?export const HISTORY_ICON = \{.*?\n\};", + src, + re.S, + ).group(0) + assert block.count(" \.ui-btn \{([^}]*)\}", css).group(1) + assert "flex: none;" in rule + assert "white-space: nowrap;" in rule