mirror of
https://github.com/outline/outline.git
synced 2025-04-13 01:29:39 +00:00
fix: Move comments empty state text to fixed position
This commit is contained in:
@ -59,7 +59,7 @@ function Comments() {
|
||||
))
|
||||
) : (
|
||||
<NoComments align="center" justify="center" auto>
|
||||
<Empty>{t("No comments yet")}</Empty>
|
||||
<PositionedEmpty>{t("No comments yet")}</PositionedEmpty>
|
||||
</NoComments>
|
||||
)}
|
||||
</Wrapper>
|
||||
@ -80,6 +80,12 @@ function Comments() {
|
||||
);
|
||||
}
|
||||
|
||||
const PositionedEmpty = styled(Empty)`
|
||||
position: absolute;
|
||||
top: calc(50vh - 30px);
|
||||
transform: translateY(-50%);
|
||||
`;
|
||||
|
||||
const NoComments = styled(Flex)`
|
||||
padding-bottom: 65px;
|
||||
height: 100%;
|
||||
|
Reference in New Issue
Block a user