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>
This commit is contained in:
@@ -252,6 +252,14 @@
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
/* 좁은 폭(730-2) — 오른쪽 목록 22rem 이 시트 칸을 폭 0 으로 짓누름 → 위(시트) · 아래(목록) 쌓기 */
|
||||
@media (max-width: 900px) {
|
||||
.m02-hopyo-sheet {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
|
||||
}
|
||||
}
|
||||
|
||||
.m02-hopyo-sheet__grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
"""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)
|
||||
Reference in New Issue
Block a user