Skip to content

Commit

Permalink
fix: Centered document title moves when saving (#1943)
Browse files Browse the repository at this point in the history
closes #1939
  • Loading branch information
iamsaumya committed Mar 9, 2021
1 parent d8eefc1 commit ab7b16b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/scenes/Document/components/Header.js
Expand Up @@ -138,9 +138,9 @@ function DocumentHeader({
}
actions={
<>
{isSaving && !isPublishing && (
{!isPublishing && (
<Action>
<Status>{t("Saving")}</Status>
<Status isSaving={isSaving}>{t("Saving")}</Status>
</Action>
)}
&nbsp;
Expand Down Expand Up @@ -301,6 +301,7 @@ function DocumentHeader({

const Status = styled.div`
color: ${(props) => props.theme.slate};
visibility: ${(props) => (props.isSaving ? "visible" : "hidden")};
`;

export default observer(DocumentHeader);

0 comments on commit ab7b16b

Please sign in to comment.