fix: Sidebar jumps when publish or unpublish document (#4706)

* Return updated collection in API response for documents.unpublish and documents.update
Allows for improved UX on clientside

* test

* tsc

* tsc
This commit is contained in:
Tom Moor
2023-01-15 09:01:06 -05:00
committed by GitHub
parent 31f743eb4c
commit 0c269081d9
4 changed files with 70 additions and 24 deletions

View File

@@ -194,8 +194,17 @@ const Link = styled(NavLink)<{
${(props) =>
props.$isDraft &&
css`
padding: 4px 14px;
border: 1px dashed ${props.theme.sidebarDraftBorder};
&:after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
border-radius: 4px;
border: 1.5px dashed ${props.theme.sidebarDraftBorder};
}
`}
svg {