Prevent layout shift
This commit is contained in:
parent
5448c9fa38
commit
3e69838cac
|
@ -6,7 +6,7 @@
|
|||
<h1>
|
||||
<span v-if="configLoaded && !titleImageUrl">{{indexName}}</span>
|
||||
|
||||
<img class="title-image" v-if="configLoaded && titleImageUrl" v-bind:src="titleImageUrl" v-bind:alt="indexName" />
|
||||
<img class="title-image" :src="titleImageUrl" :alt="indexName" />
|
||||
</h1>
|
||||
|
||||
<template v-if="!smallFormat">
|
||||
|
@ -16,7 +16,9 @@
|
|||
<div v-translate>Developed by <a href="https://framasoft.org" target="_blank">Framasoft</a></div>
|
||||
</h4>
|
||||
|
||||
<img class="search-home" v-bind:src="searchImageUrl" alt="">
|
||||
<div class="search-home">
|
||||
<img v-if="searchImageUrl" :src="searchImageUrl" alt="">
|
||||
</div>
|
||||
</template>
|
||||
</header>
|
||||
</div>
|
||||
|
@ -44,6 +46,11 @@
|
|||
width: 300px;
|
||||
height: 250px;
|
||||
margin: 30px 0 0 0;
|
||||
|
||||
img {
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
|
@ -56,6 +63,7 @@
|
|||
|
||||
.title-image {
|
||||
max-width: 500px;
|
||||
height: 78px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
|
|
Loading…
Reference in New Issue