Skip to content

Commit

Permalink
hide md preview help and restore mac header
Browse files Browse the repository at this point in the history
  • Loading branch information
jessopb committed Feb 15, 2022
1 parent 7c7c2aa commit eb1b412
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/component/common/form-components/form-field.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class FormField extends React.PureComponent<Props> {
getMdeInstance={getInstance}
options={{
spellChecker: true,
hideIcons: ['heading', 'image', 'fullscreen', 'side-by-side'],
hideIcons: ['heading', 'image', 'fullscreen', 'side-by-side', 'guide'], // guide hidden until fixed
previewRender(plainText) {
const preview = <MarkdownPreview content={plainText} noDataStore />;
return ReactDOMServer.renderToString(preview);
Expand Down
4 changes: 4 additions & 0 deletions ui/scss/component/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
}
}

.header--mac {
padding-top: var(--mac-titlebar-height);
}

.header__contents {
display: flex;
align-items: center;
Expand Down

0 comments on commit eb1b412

Please sign in to comment.