@christianriedl/media 1.0.130 → 1.0.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/views/ThumbnailsPage.vue +11 -5
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
const minImageWidth = 100;
|
|
22
22
|
const numImagesPerRow = Math.min(window.innerWidth / minImageWidth, 12);
|
|
23
23
|
const numColsPerImage = ref(Math.floor(12 / numImagesPerRow));
|
|
24
|
-
const margins = (numImagesPerRow + 1) *
|
|
24
|
+
const margins = (numImagesPerRow + 1) * 5;
|
|
25
25
|
const width = ref(Math.floor(numColsPerImage.value * (window.innerWidth - margins) / 12));
|
|
26
26
|
const textTrim = ref(Math.floor(width.value / 8));
|
|
27
27
|
const height = ref(Math.floor(width.value / 3 * 2));
|
|
@@ -109,8 +109,8 @@
|
|
|
109
109
|
<v-btn icon="$download" variant="tonal" @click="onDownload"></v-btn>
|
|
110
110
|
</v-col>
|
|
111
111
|
</v-row>
|
|
112
|
-
<v-row v-if="mediaAppConfig.showThumbnailText" dense align="center"
|
|
113
|
-
<v-col :cols="numColsPerImage" class="bg-grey-darken-
|
|
112
|
+
<v-row v-if="mediaAppConfig.showThumbnailText" dense align="center" >
|
|
113
|
+
<v-col :cols="numColsPerImage" class="bg-grey-darken-2 thumbnail" v-for="(image, index) in photos" :key="index">
|
|
114
114
|
<div class="text-caption text-no-wrap">{{image.Name.substring(0, textTrim)}}</div>
|
|
115
115
|
<v-img :src="getThumbnailUrl(image)" :height="height" @click="onClick(image)" :class="{selected: image.selected}" />
|
|
116
116
|
<v-row dense align="center">
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
</v-row>
|
|
123
123
|
</v-col>
|
|
124
124
|
</v-row>
|
|
125
|
-
<v-row v-else
|
|
126
|
-
<v-col :cols="numColsPerImage" class="bg-grey-darken-
|
|
125
|
+
<v-row v-else dense align="center" >
|
|
126
|
+
<v-col :cols="numColsPerImage" class="bg-grey-darken-2 thumbnail" v-for="(image, index) in photos" :key="index">
|
|
127
127
|
<v-img :src="getThumbnailUrl(image)" :height="height" @click="onClick(image)" :class="{selected: image.selected}" />
|
|
128
128
|
</v-col>
|
|
129
129
|
</v-row>
|
|
@@ -139,4 +139,10 @@
|
|
|
139
139
|
border-color: red;
|
|
140
140
|
border-width: medium;
|
|
141
141
|
}
|
|
142
|
+
.thumbnail {
|
|
143
|
+
margin: 0px;
|
|
144
|
+
border-style: solid;
|
|
145
|
+
border-color: lightgray;
|
|
146
|
+
|
|
147
|
+
}
|
|
142
148
|
</style>
|