mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 14:54:37 +00:00
## Summary Updates for the linter/formatter deps, turning on some more rules. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7309-WIP-Linter-updates-2c56d73d36508101b3ece6bcaf7e5212) by [Unito](https://www.unito.io) --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Christian Byrne <cbyrne@comfy.org>
28 lines
683 B
Vue
28 lines
683 B
Vue
<template>
|
|
<div class="flex flex-col items-center gap-1">
|
|
<MediaTitle :file-name="fileName" />
|
|
<div class="flex items-center text-xs text-zinc-400">
|
|
<span v-if="asset.dimensions"
|
|
>{{ asset.dimensions?.width }}x{{ asset.dimensions?.height }}</span
|
|
>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
|
|
import { getFilenameDetails } from '@/utils/formatUtil'
|
|
|
|
import type { AssetMeta } from '../schemas/mediaAssetSchema'
|
|
import MediaTitle from './MediaTitle.vue'
|
|
|
|
const { asset } = defineProps<{
|
|
asset: AssetMeta
|
|
}>()
|
|
|
|
const fileName = computed(() => {
|
|
return getFilenameDetails(asset.name).filename
|
|
})
|
|
</script>
|