fix(game-ui): 메인과 지도 화면 모드 경계를 통일한다

This commit is contained in:
2026-08-27 10:24:44 +00:00
parent e6824d6032
commit a35dcc78b3
5 changed files with 77 additions and 2 deletions
@@ -5,8 +5,17 @@ import {
normalizeScreenMode,
resolveAutoViewportContent,
resolveViewportContent,
SCREEN_MODE_DESKTOP_MEDIA_QUERY,
SCREEN_MODE_DESKTOP_MIN_WIDTH,
SCREEN_MODE_MOBILE_MEDIA_QUERY,
} from '../src/utils/screenModeViewport.ts';
void test('main and map layouts share one 939/940 screen-mode boundary', () => {
assert.equal(SCREEN_MODE_DESKTOP_MIN_WIDTH, 940);
assert.equal(SCREEN_MODE_DESKTOP_MEDIA_QUERY, '(min-width: 940px)');
assert.equal(SCREEN_MODE_MOBILE_MEDIA_QUERY, '(max-width: 939.98px)');
});
void test('automatic mode follows the Ref physical-screen thresholds', () => {
assert.equal(resolveAutoViewportContent({ deviceWidth: 390, viewportHeight: 844 }), 'width=500');
assert.equal(