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
|
|
@ -387,11 +387,4 @@ html {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.thumbnail-fit {
|
|
||||||
max-height: 120px;
|
|
||||||
max-width: 240px;
|
|
||||||
object-fit: contain;
|
|
||||||
overflow-y: hidden;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,11 @@
|
||||||
<div class="view-image uk-padding-remove uk-height-1-1">
|
<div class="view-image uk-padding-remove uk-height-1-1">
|
||||||
<img
|
<img
|
||||||
id="thumbnail-stitched-image"
|
id="thumbnail-stitched-image"
|
||||||
|
:class="[itemData?.dzi ? 'thumbnail-fit clickable' : 'thumbnail-fit disabled']"
|
||||||
class="thumbnail-fit"
|
class="thumbnail-fit"
|
||||||
:src="thumbnailPath"
|
:src="thumbnailPath"
|
||||||
onerror="this.src = '/titleiconpink.svg'"
|
onerror="this.src = '/titleiconpink.svg'"
|
||||||
@click="requestViewer"
|
@click="itemData?.dzi && requestViewer()"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -192,4 +193,19 @@ ul {
|
||||||
.gallery-card-title {
|
.gallery-card-title {
|
||||||
text-align: center;
|
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>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue