Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions frontend/src/deprecated/components/Editor/EditorHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components';
import Button from '@mui/material/Button';

const Container = styled.div`
height: 50px;
height: 65px;
background: #A09FE3;
width: 100%;
`
Expand All @@ -16,7 +16,7 @@ const HeaderFlex = styled.div`
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
justify-content: flex-end;
align-items: center;
padding: 0.3rem 0.5rem;
`
Expand All @@ -39,10 +39,11 @@ const ButtonStyle = styled(Button)`
`
/* Preview and text to be changed into a dropdown menu */

const EditorHeader: React.FC = () => {
const EditorHeader: React.FC = (props) => {
return (
<Container>
<HeaderFlex>
{props.children}
{/* <ButtonGroup>
<ButtonStyle>
Expand Down
7 changes: 4 additions & 3 deletions frontend/src/packages/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ const EditorPage: FC = () => {

return (
<div style={{ height: "100%" }}>
<EditorHeader />
<EditorHeader>
<SyncDocument onClick={() => syncDocument()} />
<PublishDocument onClick={() => publishDocument(id ?? "")} />
</EditorHeader>
<Container>
{blocks.map((block, idx) => createBlock(block, idx, focusedId === idx))}
<InsertContentWrapper>
<CreateHeadingBlock onClick={buildButtonClickHandler("heading")} />
<CreateContentBlock onClick={buildButtonClickHandler("paragraph")} />
<SyncDocument onClick={() => syncDocument()} />
<PublishDocument onClick={() => publishDocument(id ?? "")} />
</InsertContentWrapper>
</Container>
</div>
Expand Down