Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
detail icon clickable area improved
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetilhn committed Mar 1, 2023
1 parent 3a1a836 commit 80f2dc5
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions components/earthquake-list-item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,13 @@
:active-earthquake="data"
/>
</BaseModal>
<img
<div
class="earthquake-item__detail-icon"
src="@/assets/svg/eye.svg"
alt="Detail modal icon"
vertical-center
@click="openEarthquakeDetailModal"
/>
>
<img src="@/assets/svg/eye.svg" alt="Detail modal icon" />
</div>
</ClientOnly>
</article>
</template>
Expand Down Expand Up @@ -255,13 +256,23 @@ const closeEarthquakeDetailModalHandler = () => {
}
&__detail-icon {
position: absolute;
right: 8px;
top: 8px;
width: 30px;
right: 0;
top: 0;
cursor: pointer;
z-index: 1;
width: 50px;
height: 50px;
align-items: flex-end;
padding-right: 15px;
@include small-device {
width: 20px;
padding-right: 10px;
height: 40px;
}
img {
width: 30px;
@include small-device {
width: 20px;
}
}
}
.chart-detail-modal {
Expand Down

0 comments on commit 80f2dc5

Please sign in to comment.