From b2e5b523d130609b7eaa9f8e421dccf83349c6cd Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Sat, 8 Jul 2023 18:27:47 +0000 Subject: [PATCH] improve `NoResults` --- .../app/src/components/PostsList/index.jsx | 10 ++++---- .../app/src/components/PostsList/index.less | 23 ++++++++++++++++++- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/packages/app/src/components/PostsList/index.jsx b/packages/app/src/components/PostsList/index.jsx index 5dc68245..8d0c1df6 100755 --- a/packages/app/src/components/PostsList/index.jsx +++ b/packages/app/src/components/PostsList/index.jsx @@ -24,11 +24,11 @@ const LoadingComponent = () => { } const NoResultComponent = () => { - return + return
+ +
} const typeToComponent = { diff --git a/packages/app/src/components/PostsList/index.less b/packages/app/src/components/PostsList/index.less index a1054021..504f9ee8 100755 --- a/packages/app/src/components/PostsList/index.less +++ b/packages/app/src/components/PostsList/index.less @@ -55,8 +55,8 @@ overflow: hidden; overflow-y: overlay; - width: 100%; height: 100%; + width: 35vw; display: flex; flex-direction: column; @@ -119,4 +119,25 @@ to { opacity: 1; } +} + +.no-result { + display: flex !important; + flex-direction: column; + + align-items: center; + justify-content: center; + + height: fit-content; + + background-color: var(--background-color-accent); + + padding: 10px; + + h1 { + margin: 0; + font-size: 0.9rem; + } + + border-radius: 0 0 12px 12px; } \ No newline at end of file