Files
Aislo/resources/tester/test_730_2_hopyo_sheet_narrow.py
T
eomsangdonandClaude Sonnet 5.5 d386198f7f fix(730-2): 엑셀 보기 좁은 폭(900 px 이하)에서 시트 위 · 목록 아래로 쌓음
- 390 px 에서 오른쪽 목록 22rem 이 시트 칸을 폭 0 으로 짓누름 → 좁은 폭에서 한 열 · 두 줄(시트 3 : 목록 2)
- 넓은 폭(1366 · 1920) 생김 그대로
- 지킴 시험 test_730_2_hopyo_sheet_narrow.py 추가

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 13:22:59 +09:00

16 lines
613 B
Python

"""730-2 지킴 — 엑셀 보기 창은 좁은 폭에서 시트(위) · 목록(아래)로 쌓임(오른쪽 22rem 이 시트를 폭 0 으로 짓누르지 않음)."""
import re
from pathlib import Path
CSS = (Path(__file__).parents[2] / "M02_MasterTemplete/M02_MasterTemplete_Hopyo.css").read_text(
encoding="utf-8"
)
def test_sheet_stacks_on_narrow_width():
m = re.search(r"@media \(max-width: (\d+)px\) \{\s*\.m02-hopyo-sheet \{(.*?)\}", CSS, re.S)
assert m and int(m.group(1)) >= 700
assert "grid-template-columns: minmax(0, 1fr)" in m.group(2)
assert "grid-template-rows" in m.group(2)