Skip to content

Commit

Permalink
fix: image sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Jul 21, 2023
1 parent 51584e5 commit f7f7e32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/s/[id]/analytics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ useSeoMeta({
</div>
</Dialog>

<NuxtImg preload height="135" alt="World Skills ASEAN" densities="x1 x2 x3" src="/images/logo.webp" />
<NuxtImg preload fit="contain" width="135" height="135" alt="World Skills ASEAN" densities="x1 x2 x3" src="/images/logo.webp" />

<Skeleton v-if="surveyPending" height="45px" />
<h1 v-else-if="survey" mt8 text-xl font-bold>
Expand Down
2 changes: 1 addition & 1 deletion pages/s/[id]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async function submit() {
<DashboardError v-if="surveyError" v-bind="surveyError" />
<template v-else-if="survey">
<div mx-auto max-w-3xl container>
<NuxtImg preload height="135" alt="World Skills ASEAN" densities="x1 x2 x3" src="/images/logo.webp" />
<NuxtImg preload fit="contain" width="135" height="135" alt="World Skills ASEAN" densities="x1 x2 x3" src="/images/logo.webp" />

<div mt10>
<h1 text-5xl font-bold>
Expand Down
2 changes: 1 addition & 1 deletion pages/thanks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function create() {
<template>
<div p-6 lg:px-30>
<main flex flex-col gap10>
<NuxtImg peload height="135" alt="World Skills ASEAN" densities="x1 x2 x3" src="/images/logo.webp" />
<NuxtImg preload fit="contain" width="135" height="135" alt="World Skills ASEAN" densities="x1 x2 x3" src="/images/logo.webp" />

<section>
<Skeleton v-if="surveyPending" height="200px" />
Expand Down

0 comments on commit f7f7e32

Please sign in to comment.