diff --git a/B05_Profile/B05_Profile_UI_Style_RouteEdit.css b/B05_Profile/B05_Profile_UI_Style_RouteEdit.css index 6ca353168..135c686ac 100644 --- a/B05_Profile/B05_Profile_UI_Style_RouteEdit.css +++ b/B05_Profile/B05_Profile_UI_Style_RouteEdit.css @@ -410,7 +410,7 @@ .b05-routeedit__label { /* 편집 칸 안 절대 위치(345-3) — 자리는 지도 칸 안으로 가둔다(`_Label`). */ position: absolute; - z-index: 3; + z-index: 1; /* 지도 위 표지 층 — 도구줄 · 횡단 판(2) 밑(401-3) */ display: flex; flex-direction: column; gap: 4px; diff --git a/B05_Profile/B05_Profile_UI_Style_RouteEdit_ContourLock.css b/B05_Profile/B05_Profile_UI_Style_RouteEdit_ContourLock.css index 6a2f493b0..29be25d6e 100644 --- a/B05_Profile/B05_Profile_UI_Style_RouteEdit_ContourLock.css +++ b/B05_Profile/B05_Profile_UI_Style_RouteEdit_ContourLock.css @@ -1,7 +1,7 @@ /* 평면 등고선 자물쇠(353-2) — 커서 옆에 뜨는 작은 단추 · 자리는 `_ContourLock.ts` 가 잡음. */ .b05-contourlock { position: absolute; - z-index: 3; + z-index: 1; /* 지도 위 표지 층 — 도구줄 · 횡단 판(2) 밑(401-3) */ display: inline-flex; align-items: center; justify-content: center; diff --git a/resources/tester/test_401_3_plan_label_under_tools.py b/resources/tester/test_401_3_plan_label_under_tools.py new file mode 100644 index 000000000..b5900ae63 --- /dev/null +++ b/resources/tester/test_401_3_plan_label_under_tools.py @@ -0,0 +1,25 @@ +"""401-3 평면 곡선 R 창 · 등고선 자물쇠가 도구줄 [되돌리기] 를 덮어 누름이 안 가던 것. + +지도 위 표지 층(1) < 도구줄 · 횡단 판 층(2) — 표지가 도구줄 · 판 손잡이 누름을 안 가로챔. +./venv/Scripts/python.exe -m pytest resources/tester/test_401_3_plan_label_under_tools.py -q +""" + +import re +from pathlib import Path + +B05 = Path(__file__).resolve().parents[2] / "B05_Profile" + + +def _z(css_name: str, selector: str) -> int: + css = (B05 / css_name).read_text(encoding="utf-8") + block = css.split(selector + " {", 1)[1].split("}", 1)[0] + return int(re.search(r"z-index:\s*(\d+)", block).group(1)) + + +def test_표지는_도구줄_판_밑(): + tools = _z("B05_Profile_UI_Style.css", ".b05-route__view-controls") + side = _z("B05_Profile_UI_Style_RouteEdit.css", ".b05-routeedit__side-wrap") + label = _z("B05_Profile_UI_Style_RouteEdit.css", ".b05-routeedit__label") + lock = _z("B05_Profile_UI_Style_RouteEdit_ContourLock.css", ".b05-contourlock") + assert label < tools and lock < tools + assert label < side and lock < side