From 4bae7cb0b94d17b65aa9bb5341f6b6459f05c9cf Mon Sep 17 00:00:00 2001 From: Ayo Date: Mon, 12 Jun 2023 21:53:01 +0200 Subject: [PATCH 1/5] style: removed borders and made heading small --- src/components/Library.astro | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/Library.astro b/src/components/Library.astro index a761568..353a98e 100644 --- a/src/components/Library.astro +++ b/src/components/Library.astro @@ -7,6 +7,7 @@ export interface Props { const {postDivSelector, skipSave = false} = Astro.props; ---
+
@@ -32,6 +33,9 @@ const {postDivSelector, skipSave = false} = Astro.props; const list = document.querySelector('#post-list'); if(cachedRequests?.length) { + const heading = document.querySelector('#library span#heading') as HTMLHeadingElement; + heading.innerHTML = 'History'; + cachedRequests // temporary delete all cached errors .filter(request => { @@ -79,18 +83,18 @@ const {postDivSelector, skipSave = false} = Astro.props; diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 0805f0c..501065b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -40,7 +40,7 @@ const { meta } = Astro.props; - diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 501065b..bbd10b3 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -45,7 +45,6 @@ const { meta } = Astro.props; } #main-content * { - margin: 1rem 0 0; padding: 0 0.5rem; } diff --git a/src/pages/index.astro b/src/pages/index.astro index 732d959..ec7444e 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -44,5 +44,5 @@ if (url === '') { :
} - + From 4b9c005beda6d87de4878cc6332f097689a0a0b9 Mon Sep 17 00:00:00 2001 From: Ayo Date: Mon, 12 Jun 2023 22:07:29 +0200 Subject: [PATCH 4/5] style: add bottom padding to main content --- src/layouts/Layout.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index bbd10b3..ab351b6 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -45,7 +45,7 @@ const { meta } = Astro.props; } #main-content * { - padding: 0 0.5rem; + padding: 0 0.5rem 1rem; } diff --git a/src/components/Library.astro b/src/components/Library.astro index 353a98e..84ce1cc 100644 --- a/src/components/Library.astro +++ b/src/components/Library.astro @@ -108,8 +108,7 @@ const {postDivSelector, skipSave = false} = Astro.props; padding-top: 1rem; :global(.post-card__image) { float: left; - margin-right: 0.5rem; - margin: 0.25rem 1rem 0.25rem 0; + margin: 0.25rem 0.5rem 0.25rem 0; :global(img, svg) { width: 70px; diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index ab351b6..457e362 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -42,10 +42,7 @@ const { meta } = Astro.props; #main-content { max-width: var(--cozy-width); margin: 0 auto; - } - - #main-content * { - padding: 0 0.5rem 1rem; + padding: 0 1em 1em; }