mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
improve NoResults
This commit is contained in:
parent
86f6daf321
commit
b2e5b523d1
@ -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 = {
|
||||||
|
@ -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;
|
||||||
@ -120,3 +120,24 @@
|
|||||||
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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user