Fix Location page photos overflow hiding its index
This commit is contained in:
@@ -167,7 +167,7 @@
|
|||||||
</time>
|
</time>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="photo house__photo shadow-photo">
|
<figure class="house__photo">
|
||||||
<a href="/{params.country}/{params.location}/{slug}">
|
<a href="/{params.country}/{params.location}/{slug}">
|
||||||
<Image
|
<Image
|
||||||
id={id}
|
id={id}
|
||||||
@@ -179,12 +179,13 @@
|
|||||||
}}
|
}}
|
||||||
ratio={1.5}
|
ratio={1.5}
|
||||||
alt="{alt}"
|
alt="{alt}"
|
||||||
|
class="photo shadow-photo"
|
||||||
/>
|
/>
|
||||||
<span class="house__index title-index">
|
<span class="house__index title-index">
|
||||||
{(totalPhotos - index < 10) ? '0' : ''}{totalPhotos - index}
|
{(totalPhotos - index < 10) ? '0' : ''}{totalPhotos - index}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -2,12 +2,16 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: $color-primary-tertiary20;
|
background: $color-primary-tertiary20;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
cursor: zoom-in;
|
||||||
|
|
||||||
|
@include bp (md) {
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
cursor: zoom-in;
|
|
||||||
|
|
||||||
& > picture {
|
& > picture {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
cursor: zoom-in;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Information
|
// Information
|
||||||
|
|||||||
Reference in New Issue
Block a user