-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e0316a
commit df342d0
Showing
6 changed files
with
103 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
|
||
<div class="item select-none"> | ||
<div class="item-inner"> | ||
<div | ||
v-if="asset.is_svg" | ||
class="img svg-img h-7 w-7 bg-no-repeat bg-center bg-cover text-center flex items-center justify-center" | ||
:style="'background-image:url(' + asset.thumbnail + ')'" | ||
></div> | ||
<img | ||
class="asset-thumbnail max-h-full max-w-full rounded w-7 h-7 object-cover" | ||
loading="lazy" | ||
:src="asset.thumbnail" | ||
:alt="asset.basename" | ||
v-if="asset.is_image" | ||
/> | ||
<file-icon :extension="asset.extension" v-else class="w-7 h-7" /> | ||
<a :href="asset.edit_url" v-text="asset.title" class="flex items-center flex-1 ml-3 text-xs text-left truncate w-full" v-tooltip="asset.title" /> | ||
<div v-text="asset.size" class="hidden @xs:inline asset-filesize text-xs text-gray-600 px-2" /> | ||
</div> | ||
</div> | ||
|
||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
asset: Object, | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters