Set gallery cursor for action or not allowed
This commit is contained in:
parent
425fccc684
commit
f0648a1613
2 changed files with 17 additions and 8 deletions
|
|
@ -5,10 +5,11 @@
|
|||
<div class="view-image uk-padding-remove uk-height-1-1">
|
||||
<img
|
||||
id="thumbnail-stitched-image"
|
||||
:class="[itemData?.dzi ? 'thumbnail-fit clickable' : 'thumbnail-fit disabled']"
|
||||
class="thumbnail-fit"
|
||||
:src="thumbnailPath"
|
||||
onerror="this.src = '/titleiconpink.svg'"
|
||||
@click="requestViewer"
|
||||
@click="itemData?.dzi && requestViewer()"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -192,4 +193,19 @@ ul {
|
|||
.gallery-card-title {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.thumbnail-fit {
|
||||
max-height: 120px;
|
||||
max-width: 240px;
|
||||
object-fit: contain;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue