mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +03:00
fix: Slight misalignment of archived badge
This commit is contained in:
1 parent
e714e934cb
commit
8ba911b56d
1 file changed
+7
-1
@@ -213,7 +213,9 @@ function DocumentHeader({
|
||||
title={
|
||||
<>
|
||||
{document.title}{" "}
|
||||
{document.isArchived && <Badge>{t("Archived")}</Badge>}
|
||||
{document.isArchived && (
|
||||
<ArchivedBadge>{t("Archived")}</ArchivedBadge>
|
||||
)}
|
||||
</>
|
||||
}
|
||||
actions={
|
||||
@@ -358,6 +360,10 @@ function DocumentHeader({
|
||||
);
|
||||
}
|
||||
|
||||
const ArchivedBadge = styled(Badge)`
|
||||
position: absolute;
|
||||
`;
|
||||
|
||||
const Status = styled(Action)`
|
||||
padding-left: 0;
|
||||
padding-right: 4px;
|
||||
|
||||
Reference in new issue
Block a user