Fixed actor edit avatar zoom selecting avatar, showing media date.
This commit is contained in:
@@ -19,10 +19,16 @@
|
|||||||
>{{ avatar.sharpness.toFixed(2) }}</span>
|
>{{ avatar.sharpness.toFixed(2) }}</span>
|
||||||
</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
|
<a
|
||||||
:href="getPath(avatar)"
|
:href="getPath(avatar)"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="avatar-zoom"
|
class="avatar-zoom"
|
||||||
|
@click.stop
|
||||||
>
|
>
|
||||||
<Icon
|
<Icon
|
||||||
icon="search"
|
icon="search"
|
||||||
@@ -32,6 +38,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { format } from 'date-fns';
|
||||||
import getPath from '#/src/get-path.js';
|
import getPath from '#/src/get-path.js';
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
@@ -89,7 +96,8 @@ defineProps({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.avatar-meta,
|
.avatar-meta,
|
||||||
.avatar-credit {
|
.avatar-credit,
|
||||||
|
.avatar-date {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -112,4 +120,10 @@ defineProps({
|
|||||||
bottom: .75rem;
|
bottom: .75rem;
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.avatar-date {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -32,5 +32,6 @@ export function curateMedia(media, context = {}) {
|
|||||||
type: context.type || null,
|
type: context.type || null,
|
||||||
sfw: curateMedia(media.sfw_media),
|
sfw: curateMedia(media.sfw_media),
|
||||||
isRestricted: context.isRestricted,
|
isRestricted: context.isRestricted,
|
||||||
|
createdAt: media.created_at,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user