Procházet zdrojové kódy

gallery layout

centered caption placement
tags/0.9.0
Alej před 5 roky
rodič
revize
a0e31c286b
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 5
    2
      vue-theme/src/pages/single.vue

+ 5
- 2
vue-theme/src/pages/single.vue Zobrazit soubor

14
             //- ?: are objects are always gallery blocks
14
             //- ?: are objects are always gallery blocks
15
             .gallery.block(v-if="typeof block === 'object'" :class="`gallery-${i}`")
15
             .gallery.block(v-if="typeof block === 'object'" :class="`gallery-${i}`")
16
                 p gallery number: {{ i }}
16
                 p gallery number: {{ i }}
17
-                ul
17
+                ul.t-cntr 
18
                     li(v-for="(imageID, j) in post.galleries[block.gallery].ids" :class="`gallery-${i}--image-${j+1}`" :key="`block-${i}-${j}`")
18
                     li(v-for="(imageID, j) in post.galleries[block.gallery].ids" :class="`gallery-${i}--image-${j+1}`" :key="`block-${i}-${j}`")
19
                         img(@click="openGallery(i - 1, imageID)" :src="post.attached[imageID]['thumbnail']")
19
                         img(@click="openGallery(i - 1, imageID)" :src="post.attached[imageID]['thumbnail']")
20
-                        button(@click="openGallery(i - 1, imageID)") gallery: {{ i }} image: {{ imageID }}
20
+                        //- TO DO Caption stuff and full screen Title/Description
21
+                        p Caption goes here<br>
22
+                            button(@click="openGallery(i - 1, imageID)") gallery: {{ i }} image: {{ imageID }}
23
+                        br
21
                 //- Fullscreen gallery component for every gallery block
24
                 //- Fullscreen gallery component for every gallery block
22
                 gallery(
25
                 gallery(
23
                     v-if="activeGalleryIndex == (i - 1)"
26
                     v-if="activeGalleryIndex == (i - 1)"

Načítá se…
Zrušit
Uložit