summaryrefslogtreecommitdiffstats
path: root/src/components/File.vue
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-11-20 17:59:00 +0100
committerLouis Chemineau <louis@chmn.me>2023-11-20 18:05:57 +0100
commit54d24ab43f3a1c0f39f4f0f8ec51cbe8705f2165 (patch)
tree318023e16ba6268926a42b4a296692151f357ea1 /src/components/File.vue
parentb4b5950bf37778f4f1d736c196b6aecc56bf1559 (diff)
Port virtual list perf improvements from F2V
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'src/components/File.vue')
-rw-r--r--src/components/File.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/File.vue b/src/components/File.vue
index 76628f71..7bf19d32 100644
--- a/src/components/File.vue
+++ b/src/components/File.vue
@@ -78,7 +78,10 @@
<span class="input-label">{{ t('photos', 'Select image {imageName}', {imageName: file.basename}) }}</span>
</NcCheckboxRadioSwitch>
- <Star v-if="file.favorite === 1" class="favorite-state" :aria-label="t('photos', 'The file is in the favorites')" />
+ <Star v-if="file.favorite === 1"
+ v-once
+ class="favorite-state"
+ :aria-label="t('photos', 'The file is in the favorites')" />
</div>
</template>
@@ -223,6 +226,7 @@ export default {
<style lang="scss" scoped>
.file-container {
+ contain: strict;
background: var(--color-primary-element-light);
position: relative;
height: 100%;