Merge branch 'fix/some-perf-fix' into 'develop'

fix lazy loading + css fix

See merge request geovisio/website!97
This commit is contained in:
Jean Andreani
2023-10-16 16:11:18 +00:00
3 changed files with 28 additions and 16 deletions

View File

@@ -1,20 +1,22 @@
<template>
<div class="icon-block">
<slot></slot>
<p class="license-text">
{{
$t('pages.share_pictures.information_text2', {
word: 'la licence'
})
}}
</p>
<Link
:href="url"
:text="text"
target="_blank"
type="external"
look="link--grey"
/>
<div class="text-block">
<p class="license-text">
{{
$t('pages.share_pictures.information_text2', {
word: 'la licence'
})
}}
</p>
<Link
:href="url"
:text="text"
target="_blank"
type="external"
look="link--grey"
/>
</div>
</div>
</template>
@@ -31,6 +33,11 @@ defineProps({
display: flex;
font-weight: 600;
}
.text-block {
display: flex;
flex-wrap: wrap;
align-items: center;
}
.license-text {
font-weight: bold;
margin-right: toRem(0.5);

View File

@@ -84,7 +84,7 @@
<img
v-if="item['stats:items'].count > 0"
:src="`${item.href}/thumb.jpg`"
lazy="loading"
loading="lazy"
alt=""
class="thumb"
/>
@@ -92,7 +92,7 @@
<img
v-if="item['stats:items'].count > 0"
:src="`${item.href}/thumb.jpg`"
lazy="loading"
loading="lazy"
alt=""
class="thumb-hover"
/>

View File

@@ -282,7 +282,12 @@ ul {
.entry-information-card {
margin-top: toRem(2);
}
.icon-block {
display: flex;
align-items: center;
}
.icon-block-img {
height: toRem(2);
margin-right: toRem(0.5);
}
.about-subtitle {