layout fixes

This commit is contained in:
2023-08-29 08:44:56 +10:00
parent 0119875d22
commit 581b732b05

View File

@@ -133,6 +133,7 @@
@dblclick="handleDblClickItem(item.id)"> @dblclick="handleDblClickItem(item.id)">
<div <div
:class="[ :class="[
'my-1',
'h-30', 'h-30',
'w-40', 'w-40',
'bg-contain', 'bg-contain',
@@ -258,7 +259,7 @@
<div <div
class="flex text-xs border-b border-gray-3 pb-4"> class="flex text-xs border-b border-gray-3 pb-4">
<div <div
class="w-100 h-100 max-h-20 max-w-20 mr-2 bg-contain bg-no-repeat bg-center" class="w-100 h-100 max-h-15 max-w-15 mr-2 bg-contain bg-no-repeat bg-center"
:style="{ :style="{
backgroundImage: `url('${mediaGetThumbnail( backgroundImage: `url('${mediaGetThumbnail(
lastSelected, lastSelected,
@@ -275,6 +276,9 @@
) )
}} }}
</p> </p>
<p class="m-0">
{{ lastSelected.mime_type }}
</p>
<p class="m-0"> <p class="m-0">
{{ {{
bytesReadable( bytesReadable(
@@ -675,10 +679,11 @@ const getMediaItem = (item_id: string): Media | null => {
}; };
const showMediaName = (media: Media): boolean => { const showMediaName = (media: Media): boolean => {
return !( return true;
media.mime_type.startsWith("image/") || // return !(
media.mime_type.startsWith("video/") // media.mime_type.startsWith("image/") ||
); // media.mime_type.startsWith("video/")
// );
}; };
/** /**