diff options
| author | Zephyrrus <[email protected]> | 2020-07-20 23:01:45 +0300 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-07-20 23:01:45 +0300 |
| commit | 18bb451f793677a5bbfdc2c14128bae33c66dfde (patch) | |
| tree | 12e5e02d793b11bfac3dafd5078a1f0b2464d6ce /src/site/components/grid/waterfall/Waterfall.vue | |
| parent | fix: return the edited/changed/delete entity from API (diff) | |
| download | host.fuwn.me-18bb451f793677a5bbfdc2c14128bae33c66dfde.tar.xz host.fuwn.me-18bb451f793677a5bbfdc2c14128bae33c66dfde.zip | |
feat: implement all-in-one file detail viewer, tag editor and album selection modal
Diffstat (limited to 'src/site/components/grid/waterfall/Waterfall.vue')
| -rw-r--r-- | src/site/components/grid/waterfall/Waterfall.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/site/components/grid/waterfall/Waterfall.vue b/src/site/components/grid/waterfall/Waterfall.vue index 79a330a..762cbbd 100644 --- a/src/site/components/grid/waterfall/Waterfall.vue +++ b/src/site/components/grid/waterfall/Waterfall.vue @@ -1,7 +1,7 @@ <template> <div ref="waterfall" class="waterfall"> <WaterfallItem - v-for="(item, index) in items" + v-for="item in items" :key="item.id" :style="{ width: `${itemWidth}px`, marginBottom: `${gutterHeight}px` }" :width="itemWidth"> @@ -13,6 +13,7 @@ import WaterfallItem from './WaterfallItem.vue'; const isBrowser = typeof window !== 'undefined'; +// eslint-disable-next-line global-require const Masonry = isBrowser ? window.Masonry || require('masonry-layout') : null; const imagesloaded = isBrowser ? require('imagesloaded') : null; |