fixed position of new post button to fit all devices and be completely visible at any time

This commit is contained in:
Ulf Gebhardt 2019-04-08 12:45:03 +02:00
parent cece32f55d
commit e51fd361ed
No known key found for this signature in database
GPG Key ID: 44C888923CC8E7F3

View File

@ -1,16 +1,12 @@
<template> <template>
<div> <div>
<ds-flex <ds-flex v-if="Post && Post.length" :width="{ base: '100%' }" gutter="base">
v-if="Post && Post.length"
:width="{ base: '100%' }"
gutter="base"
>
<ds-flex-item <ds-flex-item
v-for="post in uniq(Post)" v-for="post in uniq(Post)"
:key="post.id" :key="post.id"
:width="{ base: '100%', xs: '100%', md: '50%', xl: '33%' }" :width="{ base: '100%', xs: '100%', md: '50%', xl: '33%' }"
> >
<hc-post-card :post="post" /> <hc-post-card :post="post"/>
</ds-flex-item> </ds-flex-item>
</ds-flex> </ds-flex>
<no-ssr> <no-ssr>
@ -23,11 +19,7 @@
primary primary
/> />
</no-ssr> </no-ssr>
<hc-load-more <hc-load-more v-if="true" :loading="$apollo.loading" @click="showMoreContributions"/>
v-if="true"
:loading="$apollo.loading"
@click="showMoreContributions"
/>
</div> </div>
</template> </template>
@ -149,8 +141,8 @@ export default {
.post-add-button { .post-add-button {
z-index: 100; z-index: 100;
position: fixed; position: fixed;
top: 100vh; top: 98vh;
left: 100vw; left: 98vw;
transform: translate(-120%, -120%); transform: translate(-120%, -120%);
box-shadow: $box-shadow-x-large; box-shadow: $box-shadow-x-large;
} }