diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-27 17:53:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-27 17:53:19 +0100 |
commit | 4f5d597cf08a609e64741b0fdaf16577284249ba (patch) | |
tree | 6fe224aac15e46ed4f527b12b86fdac7ab376b29 /components/Posts/PostList/PurePostList.vue | |
parent | 6a87f4d381bb43bea3a2b64ea930d4f46783e22c (diff) | |
parent | 3c2ac6715dfffc2eda38e014ed0b4986ccc7f75a (diff) | |
download | puszcza-4f5d597cf08a609e64741b0fdaf16577284249ba.tar.gz puszcza-4f5d597cf08a609e64741b0fdaf16577284249ba.zip |
Merge pull request #25 from 19pdh/develop
Camp & images
Diffstat (limited to 'components/Posts/PostList/PurePostList.vue')
-rw-r--r-- | components/Posts/PostList/PurePostList.vue | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/components/Posts/PostList/PurePostList.vue b/components/Posts/PostList/PurePostList.vue index ace069f..210973e 100644 --- a/components/Posts/PostList/PurePostList.vue +++ b/components/Posts/PostList/PurePostList.vue @@ -1,6 +1,6 @@ <template> <div class="post-list"> - <div v-if="loading" class="post-list-container"> + <div v-if="loading" class="post-list-container loading"> <div class="loading-post" v-for="(_, index) in 4" :key="index"></div> </div> <div v-else-if="!posts" class="no-posts">Brak wpisów</div> @@ -12,6 +12,7 @@ :route="post.route" :title="post.title" :description="post.description" + :image="post.image" /> </div> </transition> @@ -27,14 +28,14 @@ export default { props: { posts: { type: Array, - required: true + required: true, }, loading: { type: Boolean, required: false, - default: () => false - } - } + default: () => false, + }, + }, } </script> @@ -52,6 +53,13 @@ export default { justify-content: center; } +@media (max-width: 920px) { + .post-list-container.loading div:nth-child(1), + .post-list-container.loading div:nth-child(2) { + display: none; + } +} + @keyframes loading { 0%, 100% { |