fix: Various editor header and metadata fixes (#2361)
* fix: Publish button disabled on drafts in read-only mode fix: Template selector appears on edited documents * fix: Save button does not immediately come available when selecting a template * fix: Template menu item alignment closes #2204 * fixes: Use policy for display of star in document title closes #2354 * fix: Modified time is sometimes bold when last edited user is current user closes #2355 * fix: Allow starring of drafts
This commit is contained in:
@@ -40,13 +40,13 @@ function TemplatesMenu({ document }: Props) {
|
||||
{...menu}
|
||||
>
|
||||
<DocumentIcon />
|
||||
<div>
|
||||
<TemplateItem>
|
||||
<strong>{template.titleWithDefault}</strong>
|
||||
<br />
|
||||
<Author>
|
||||
{t("By {{ author }}", { author: template.createdBy.name })}
|
||||
</Author>
|
||||
</div>
|
||||
</TemplateItem>
|
||||
</MenuItem>
|
||||
);
|
||||
|
||||
@@ -70,9 +70,12 @@ function TemplatesMenu({ document }: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
const Author = styled.div`
|
||||
font-size: 13px;
|
||||
const TemplateItem = styled.div`
|
||||
text-align: left;
|
||||
`;
|
||||
|
||||
const Author = styled.div`
|
||||
font-size: 13px;
|
||||
`;
|
||||
|
||||
export default observer(TemplatesMenu);
|
||||
|
||||
Reference in New Issue
Block a user