Fix mobile slide
This commit is contained in:
parent
25d36a53ce
commit
0c0961dac4
|
@ -57,18 +57,12 @@
|
||||||
<path d="M 4.95,6.364 5.657,7.071 11.314,1.414 9.9,0 5.657,4.242 1.414,0 0,1.414 Z" />
|
<path d="M 4.95,6.364 5.657,7.071 11.314,1.414 9.9,0 5.657,4.242 1.414,0 0,1.414 Z" />
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
<div class="overflow-hidden">
|
<div class="overflow-hidden grow">
|
||||||
<carousel :touch-drag="false" :mouse-drag="false" v-model="active">
|
<carousel :touch-drag="false" :mouse-drag="false" v-model="active">
|
||||||
<slide v-for="(section, index) in v.sections" :key="index" class="relative flex flex-no-wrap overflow-hidden">
|
<slide v-for="(section, index) in v.sections" :key="index">
|
||||||
<div class="flex-none w-full">
|
<div v-if="active === index" class="w-full flex-none px-2 flex flex-col items-center justify-center h-12" @click="active = index">
|
||||||
<div
|
<span class="flex items-center justify-center w-4 h-4 rounded-full bg-circle text-font transition duration-300" v-html="index + 1"></span>
|
||||||
href="#"
|
<span class="text-sm text-font" v-html="section.name"></span>
|
||||||
class="flex flex-col @md:flex-row items-center justify-center @md:justify-start px-2 flex-auto @md:pl-6 h-12 @md:h-16 transition duration-300 relative"
|
|
||||||
@click="active = index"
|
|
||||||
>
|
|
||||||
<span class="flex items-center justify-center w-4 @md:w-6 h-4 @md:h-6 rounded-full bg-circle text-font transition duration-300" v-html="index + 1"></span>
|
|
||||||
<span class="text-sm text-font" v-html="section.name"></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</slide>
|
</slide>
|
||||||
</carousel>
|
</carousel>
|
||||||
|
|
Loading…
Reference in New Issue