- ⚙ 설정 모달 폭 360 → 400 — 「토적도(유토곡선) 설정」 제목 148px 이 124px 칸에 잘리던 것 다 보임(B07 설정 모달만 · 공용 모달 머리 꼴 그대로) - 주석 › 문자 스타일 칸 다섯 = 다섯 줄(102px)이 리본 높이 66 넘어 묶음 이름과 겹침 → 세 줄(글꼴 / 크기 · 색상 / 굵게 · 기울임) · 묶음 폭 · 다른 묶음 자리 그대로 - 리본(position: fixed)이 쌓임 맥락이라 넘침 메뉴 z 20 이 왼쪽 판(z 3) 밑 → 메뉴 연 동안 리본 z 10 - 지킴 시험 test_557_1_b07_cad_fixes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.3 KiB
Python
33 lines
1.3 KiB
Python
"""557-1 B07 · CAD 작은 흠 — 화면 없이 소스로 지킴.
|
|
|
|
⚙ 설정 모달 폭 400(토적도 제목 · 머리 단추 한 줄) · 리본 문자 스타일 칸 다섯 = 세 줄(리본 높이 안) ·
|
|
넘침 메뉴 연 동안 리본이 왼쪽 판(z 3) 위.
|
|
"""
|
|
|
|
import re
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
CAD = ROOT / "B07_DesignDetail" / "openwebcad" / "src"
|
|
|
|
|
|
def test_settings_modal_width():
|
|
css = (ROOT / "B07_DesignDetail" / "B07_DesignDetail_UI_Style.css").read_text("utf-8")
|
|
assert re.search(r"\.ui-modal\.b07-settings \{\s*width: min\(400px, 92vw\);", css)
|
|
|
|
|
|
def test_text_style_three_rows():
|
|
src = (CAD / "components" / "RibbonWidgets.tsx").read_text("utf-8")
|
|
widget = src[src.index("export const TextStyleWidget") :]
|
|
assert widget.count('className="cad-prop-row"') == 2
|
|
assert (
|
|
widget.count("cad-prop") - widget.count("cad-prop-row") == 6
|
|
) # 글꼴(--wide 포함 2) + 칸 넷
|
|
|
|
|
|
def test_overflow_menu_above_inspector():
|
|
css = (CAD / "App.css").read_text("utf-8")
|
|
z = re.search(r"\.cad-ribbon:has\(\.cad-ribbon-overflow\) \{\s*z-index: (\d+);", css)
|
|
inspector = re.search(r"\.cad-inspector \{[^}]*z-index: (\d+);", css)
|
|
assert z and inspector and int(z.group(1)) > int(inspector.group(1))
|