Compare commits

...
2 Commits
4 changed files with 19 additions and 4 deletions
+15 -1
View File
@@ -19,10 +19,16 @@
>{{ avatar.sharpness.toFixed(2) }}</span>
</span>
<span
:title="`Added ${format(avatar.createdAt, 'yyyy-MM-dd')}, may not reflect photo age`"
class="avatar-date"
>{{ format(avatar.createdAt, '\'\'yy-MM') }}</span>
<a
:href="getPath(avatar)"
target="_blank"
class="avatar-zoom"
@click.stop
>
<Icon
icon="search"
@@ -32,6 +38,7 @@
</template>
<script setup>
import { format } from 'date-fns';
import getPath from '#/src/get-path.js';
defineProps({
@@ -89,7 +96,8 @@ defineProps({
}
.avatar-meta,
.avatar-credit {
.avatar-credit,
.avatar-date {
position: absolute;
z-index: 10;
box-sizing: border-box;
@@ -112,4 +120,10 @@ defineProps({
bottom: .75rem;
left: 0;
}
.avatar-date {
position: absolute;
top: 0;
left: 0;
}
</style>
+2 -2
View File
@@ -1,11 +1,11 @@
{
"name": "traxxx-web",
"version": "0.50.18",
"version": "0.50.19",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "0.50.18",
"version": "0.50.19",
"dependencies": {
"@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5",
+1 -1
View File
@@ -92,7 +92,7 @@
"overrides": {
"vite": "$vite"
},
"version": "0.50.18",
"version": "0.50.19",
"imports": {
"#/*": "./*.js"
}
+1
View File
@@ -32,5 +32,6 @@ export function curateMedia(media, context = {}) {
type: context.type || null,
sfw: curateMedia(media.sfw_media),
isRestricted: context.isRestricted,
createdAt: media.created_at,
};
}