mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
improve NoResults
This commit is contained in:
parent
86f6daf321
commit
b2e5b523d1
@ -24,11 +24,11 @@ const LoadingComponent = () => {
|
||||
}
|
||||
|
||||
const NoResultComponent = () => {
|
||||
return <antd.Result
|
||||
status="info"
|
||||
title="This is the end"
|
||||
subTitle="We dont have more posts for you"
|
||||
/>
|
||||
return <div className="postCard">
|
||||
<antd.Empty
|
||||
description="No more post here"
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
|
||||
const typeToComponent = {
|
||||
|
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user