From 9bfc346b16987a42fb67cced0da4a5efb9a783e9 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Tue, 17 May 2022 14:38:25 +0200 Subject: [PATCH] improved mobile support --- src/lib/components/post.svelte | 12 ++++++++++-- src/lib/layouts/post.svelte | 2 +- .../quick-comparison-of-s3/_compare/Compare.svelte | 9 +++++++-- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/lib/components/post.svelte b/src/lib/components/post.svelte index 2acfe9b..489e587 100644 --- a/src/lib/components/post.svelte +++ b/src/lib/components/post.svelte @@ -62,10 +62,18 @@ cursor: pointer; user-select: none; width: 100%; - height: 150px; padding: 10px 0; display: flex; align-items: center; + justify-content: center; + } + .data { + flex-grow: 1; + } + @media (max-width: 768px) { + .post { + flex-wrap: wrap; + } } h4 { margin: 5px 0; @@ -82,13 +90,13 @@ margin-top: 5px; object-fit: cover; box-shadow: 0 0 5px rgb(145, 145, 145); + border-radius: 5px; } .dark .thumbnail { box-shadow: 0 0 5px rgb(0, 0, 0); } img { height: 100%; - border-radius: 5px; } /* .author img { height: 100%; diff --git a/src/lib/layouts/post.svelte b/src/lib/layouts/post.svelte index afe1999..673188d 100644 --- a/src/lib/layouts/post.svelte +++ b/src/lib/layouts/post.svelte @@ -55,7 +55,7 @@