fix(game-ui): 중간 폭 지도 비율을 보존한다

This commit is contained in:
2026-08-27 11:45:00 +00:00
parent eea8bd079a
commit edd962922e
2 changed files with 78 additions and 26 deletions
@@ -200,13 +200,11 @@ const dynamicCityById = computed(() => {
});
const mapScale = computed(() => {
if (isWide.value && !props.fitContainer) {
return 1;
}
const preferredScale = props.fitContainer || isWide.value ? 1 : SMALL_MAP_SCALE;
if (mapBodyWidth.value <= 0) {
return SMALL_MAP_SCALE;
return preferredScale;
}
return Math.min(props.fitContainer ? 1 : SMALL_MAP_SCALE, mapBodyWidth.value / BASE_MAP_WIDTH);
return Math.min(preferredScale, mapBodyWidth.value / BASE_MAP_WIDTH);
});
const effectiveDetailMode = computed(() => props.detailMode ?? storeDetailMode.value);