diff --git a/web/src/App.vue b/web/src/App.vue index 41cc203..ac2a595 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -246,6 +246,7 @@ onUnmounted(() => { diff --git a/web/src/components/game/GameCanvas.vue b/web/src/components/game/GameCanvas.vue index c6ccf3c..6e5e716 100644 --- a/web/src/components/game/GameCanvas.vue +++ b/web/src/components/game/GameCanvas.vue @@ -18,6 +18,10 @@ const { loadBaseTextures, isLoaded } = useTextures() const mapSize = ref({ width: 2000, height: 2000 }) +defineProps<{ + sidebarWidth?: number +}>() + const emit = defineEmits<{ (e: 'avatarSelected', payload: { type: 'avatar'; id: string; name?: string }): void (e: 'regionSelected', payload: { type: 'region'; id: string; name?: string }): void @@ -64,6 +68,7 @@ onMounted(() => { :screen-height="height" :world-width="mapSize.width" :world-height="mapSize.height" + :padding-right="sidebarWidth" >