From bc2de5198720c1cd818149dd9805f4dba8b619d7 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 23 Jan 2024 00:07:36 +0800 Subject: [PATCH] :lipstick: Optimized UX --- .idea/.gitignore | 8 ++++++++ .idea/Capital.iml | 12 ++++++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ src/components/PostList.astro | 4 ++-- src/pages/index.astro | 32 -------------------------------- src/pages/posts/index.astro | 35 +++++++++++++++++++++-------------- src/scripts/requests.ts | 21 +++++++++++++-------- 8 files changed, 70 insertions(+), 56 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/Capital.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/Capital.iml b/.idea/Capital.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/Capital.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..97aa9ab --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/components/PostList.astro b/src/components/PostList.astro index 98cc1a7..6513daf 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -8,11 +8,11 @@ import { POST_TYPES } from "../scripts/consts"; const { posts } = Astro.props; --- -
+
{ posts?.map((item) => ( -
+
{item.cover.image.url && (
- -