Skip to content

Commit

Permalink
image display problem resolved in carousel, little changes in dropout
Browse files Browse the repository at this point in the history
  • Loading branch information
michalm17 committed Apr 15, 2022
1 parent 068cc24 commit a184bd9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/components/GalleryCarouselC.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
1 of 3

<q-carousel
:height="windowHeight"
swipeable
animated
:autoplay="autoplay"
Expand All @@ -15,6 +16,7 @@
>
<q-carousel-slide
:name="1"
class="flex flex-center"
img-src="https://www.printsandfineart.co.uk/previews/none/none/none/800/12-18-I/16-22-I/GM4577.jpg"
/>
<q-carousel-slide
Expand Down Expand Up @@ -91,6 +93,9 @@
import { ref } from "vue";
export default {
created() {
this.windowHeight = window.innerHeight + "px";
},
setup() {
return {
slide: ref(1),
Expand Down
12 changes: 7 additions & 5 deletions src/components/GalleryLayoutC.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<q-btn-dropdown stretch flat label="Artists">
<q-list>
<q-item-label header>Artist 1</q-item-label>
<q-item-section
><q-item-label caption>born/died </q-item-label>
</q-item-section>
<q-item
v-for="n in 3"
:key="`x.${n}`"
Expand All @@ -21,13 +24,15 @@
>
<q-item-section>
<q-item-label>Photos</q-item-label>
<q-item-label caption>born/died </q-item-label>
</q-item-section>
</q-item>

<q-separator inset spaced />

<q-item-label header>Artist 2</q-item-label>
<q-item-section
><q-item-label caption>born/died </q-item-label>
</q-item-section>
<q-item
v-for="n in 3"
:key="`x.${n}`"
Expand All @@ -37,7 +42,6 @@
>
<q-item-section>
<q-item-label>Photos</q-item-label>
<q-item-label caption>born/died </q-item-label>
</q-item-section>
</q-item>
</q-list>
Expand All @@ -47,9 +51,7 @@

<q-page-container>
<q-page class="q-pa-md">
<p v-for="n in 15" :key="n">
<GalleryCarouselC />
</p>
<GalleryCarouselC />
</q-page>
</q-page-container>
</q-layout>
Expand Down

0 comments on commit a184bd9

Please sign in to comment.