Skip to content

Commit

Permalink
Set image width and height explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
spider-hand committed Jun 25, 2023
1 parent 97d114e commit 8660e77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
src="@/assets/images/logo.svg"
:class="$style['page__logo']"
alt="Geoguess Master Logo"
:width="deviceState >= DEVICE_TYPES.TABLET_LANDSCAPE ? 60 : 44"
:height="deviceState >= DEVICE_TYPES.TABLET_LANDSCAPE ? 60 : 44"
>
<MySpace />
<a href="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/spider-hand/GeoguessMaster">
Expand Down Expand Up @@ -48,6 +50,12 @@
import MySpace from "@/components/shared/MySpace.vue";
import AuroraBackground from "@/components/home/AuroraBackground.vue";
import CreateGameForm from "@/components/home/CreateGameForm.vue";
import { useDeviceStore } from "@/stores/device";
import { storeToRefs } from "pinia";
import { DEVICE_TYPES } from "@/constants";
const deviceStore = useDeviceStore();
const { deviceState } = storeToRefs(deviceStore);
</script>

<style module lang="scss">
Expand Down

0 comments on commit 8660e77

Please sign in to comment.