mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
remove contentype badge from media assets card (#7440)
## Summary Match Figma by removing contenttype assets badge, which doesn't really serve a good purpose. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7440-remove-contentype-badge-from-media-assets-card-2c86d73d3650818e8d14ed4573d28725) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -55,7 +55,6 @@
|
|||||||
variant="gray"
|
variant="gray"
|
||||||
:label="formattedDuration"
|
:label="formattedDuration"
|
||||||
/>
|
/>
|
||||||
<SquareChip v-if="fileFormat" variant="gray" :label="fileFormat" />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Media actions - show on hover or when playing -->
|
<!-- Media actions - show on hover or when playing -->
|
||||||
@@ -266,12 +265,6 @@ const formattedDuration = computed(() => {
|
|||||||
return formatDuration(Number(duration))
|
return formatDuration(Number(duration))
|
||||||
})
|
})
|
||||||
|
|
||||||
const fileFormat = computed(() => {
|
|
||||||
if (!asset?.name) return ''
|
|
||||||
const parts = asset.name.split('.')
|
|
||||||
return parts.length > 1 ? parts[parts.length - 1].toUpperCase() : ''
|
|
||||||
})
|
|
||||||
|
|
||||||
const durationChipClasses = computed(() => {
|
const durationChipClasses = computed(() => {
|
||||||
if (fileKind.value === 'audio') {
|
if (fileKind.value === 'audio') {
|
||||||
return '-translate-y-11'
|
return '-translate-y-11'
|
||||||
@@ -289,7 +282,7 @@ const showStaticChips = computed(
|
|||||||
!!asset &&
|
!!asset &&
|
||||||
!isHovered.value &&
|
!isHovered.value &&
|
||||||
!isVideoPlaying.value &&
|
!isVideoPlaying.value &&
|
||||||
(formattedDuration.value || fileFormat.value)
|
formattedDuration.value
|
||||||
)
|
)
|
||||||
|
|
||||||
// Show action overlay when hovered OR playing
|
// Show action overlay when hovered OR playing
|
||||||
|
|||||||
Reference in New Issue
Block a user