Skip to content

Commit

Permalink
UI / improved media tiles resolution for large display
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-ev committed Sep 13, 2023
1 parent 17bef16 commit ae31e44
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion client/src/components/MediaTile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
@dragend="endMediaDrag()"
>
<div class="u-nut _index" v-html="index" />
<MediaContent class="_content" :file="file" :resolution="220" />
<MediaContent
class="_content"
:file="file"
:resolution="media_resolution"
/>
<div
v-if="tile_mode === 'table'"
v-html="formatDateToPrecise(file.$date_uploaded)"
Expand Down Expand Up @@ -85,6 +89,10 @@ export default {
beforeDestroy() {},
watch: {},
computed: {
media_resolution() {
if (this.tile_mode === "medium") return 440;
return 220;
},
duration() {
if (["video", "audio"].includes(this.file.$type))
if (this.file.$infos.duration)
Expand Down
2 changes: 1 addition & 1 deletion settings_base.json
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
},
"$files": {
"thumbs": {
"resolutions": [50, 220, 1600]
"resolutions": [50, 220, 440, 1600]
},
"fields": {
"group": {
Expand Down

0 comments on commit ae31e44

Please sign in to comment.