From 6bd22ee6865bd02fbbac30038bc43bb62d1ef35a Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Wed, 6 Sep 2023 11:25:22 -0300 Subject: [PATCH] Fix width of `DepthHUD` canvas --- src/components/widgets/DepthHUD.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/widgets/DepthHUD.vue b/src/components/widgets/DepthHUD.vue index 299758be3..4b5892952 100644 --- a/src/components/widgets/DepthHUD.vue +++ b/src/components/widgets/DepthHUD.vue @@ -87,9 +87,9 @@ onMounted(() => { }) // Make canvas size follows window resizing -const { width: windowWidth, height: windowHeight } = useWindowSize() +const { height: windowHeight } = useWindowSize() const canvasSize = computed(() => ({ - width: widget.value.size.width * windowWidth.value, + width: 128, height: widget.value.size.height * windowHeight.value, }))