Fix Location page photos overflow hiding its index

This commit is contained in:
2021-10-24 22:03:18 +02:00
parent 726aa60a06
commit 04a0b2bec5
3 changed files with 9 additions and 3 deletions

View File

@@ -167,7 +167,7 @@
</time>
</a>
</div>
<div class="photo house__photo shadow-photo">
<figure class="house__photo">
<a href="/{params.country}/{params.location}/{slug}">
<Image
id={id}
@@ -179,12 +179,13 @@
}}
ratio={1.5}
alt="{alt}"
class="photo shadow-photo"
/>
<span class="house__index title-index">
{(totalPhotos - index < 10) ? '0' : ''}{totalPhotos - index}
</span>
</a>
</div>
</figure>
</div>
{/each}
</section>

View File

@@ -2,12 +2,16 @@
overflow: hidden;
background: $color-primary-tertiary20;
border-radius: 6px;
cursor: zoom-in;
@include bp (md) {
border-radius: 8px;
}
a {
position: relative;
display: block;
height: 100%;
cursor: zoom-in;
& > picture {
height: 100%;

View File

@@ -8,6 +8,7 @@
a {
text-decoration: none;
cursor: zoom-in;
}
// Information