mirror of
https://github.com/outline/outline.git
synced 2026-12-02 01:34:47 +03:00
fix: Move comments empty state text to fixed position
This commit is contained in:
1 parent
2458085eed
commit
9573026fdd
1 file changed
+7
-1
@@ -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