[WEB-4] [EDITOR] move sync and publish buttons to the top of the editor page #336
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why the changes are required?
Currently in the editor, the sync and publish buttons are positioned next to the
insert heading/content blockbuttons. As these buttons don't directly relate to the editing of the document, it is best to position them separately in the top right corner.Changes
In
frontend/src/packages/editor/index.tsx:EditorHeadercomponent to have both a opening and closing tag, in order to nest the sync and publish buttons within it.SyncDocumentandPublishDocumentcomponents withinEditorHeader.In
frontend/src/deprecated/components/Editor/EditorHeader.tsx:50pxto65px, in order to fully contain the sync and publish buttons without overflow.HeaderFlexcomponent, setjustify-contenttoflex-endin order to align the buttons to the right of the header.EditorHeaderto havepropsin order to pass in sync and publish buttons as children.Screenshots
Comments