improve NoResults

This commit is contained in:
SrGooglo 2023-07-08 18:27:47 +00:00
parent 86f6daf321
commit b2e5b523d1
2 changed files with 27 additions and 6 deletions

View File

@ -24,11 +24,11 @@ const LoadingComponent = () => {
} }
const NoResultComponent = () => { const NoResultComponent = () => {
return <antd.Result return <div className="postCard">
status="info" <antd.Empty
title="This is the end" description="No more post here"
subTitle="We dont have more posts for you" />
/> </div>
} }
const typeToComponent = { const typeToComponent = {

View File

@ -55,8 +55,8 @@
overflow: hidden; overflow: hidden;
overflow-y: overlay; overflow-y: overlay;
width: 100%;
height: 100%; height: 100%;
width: 35vw;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -119,4 +119,25 @@
to { to {
opacity: 1; 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;
} }