Added filesize to thumbnail
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
5b90feda73
commit
4cdc8f0ba7
@ -37,6 +37,7 @@
|
||||
}
|
||||
|
||||
#info {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
padding: 0.5em;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
@ -47,6 +48,12 @@
|
||||
font-size: 0.6em;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s ease-in-out;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#info > div > div {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
#actions {
|
||||
@ -75,9 +82,15 @@
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<div id="info" class="layout vertical start">
|
||||
<div>[[item.name]] ([[item.id]])</div>
|
||||
<div>[[item.taken]]</div>
|
||||
<div id="info" class="layout vertical">
|
||||
<div class="layout horizontal justified center">
|
||||
<div class="flex">[[item.name]]</div>
|
||||
<div>([[item.id]])</div>
|
||||
</div>
|
||||
<div class="layout horizontal justified center">
|
||||
<div>[[formatDateTime(item.taken)]]</div>
|
||||
<div>[[item.size]]</div>
|
||||
</div>
|
||||
<div on-tap="_pathTap">[[item.path]]</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -119,6 +132,10 @@
|
||||
"thumbChanged(thumbpath, visible)"
|
||||
],
|
||||
|
||||
formatDateTime: function(date) {
|
||||
return window.moment(new Date(date)).format("lll");
|
||||
},
|
||||
|
||||
_fireAction: function(event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
Loading…
x
Reference in New Issue
Block a user