Skip to content

Commit

Permalink
Merge pull request smaranjitghose#693 from Rishab-j/issue658
Browse files Browse the repository at this point in the history
Fixed padding to the editor (Issue smaranjitghose#658)
  • Loading branch information
smaranjitghose authored Mar 16, 2021
2 parents 95d926c + 9db1653 commit 19d99dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pages/Editor/containers/editContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ const EditContextProvider = props => {

const [headValues, setHeadValues] = useState({
headSize: null,
headTop: null,
headLeft: 0,
headTop: 20,
headLeft: 20,
headRight: 20,
headLine: null,
headFont: "HomemadeApple",
headColor: "black",
Expand All @@ -29,8 +30,9 @@ const EditContextProvider = props => {
});
const [bodyValues, setBodyValues] = useState({
bodySize: null,
bodyTop: null,
bodyLeft: 0,
bodyTop: 20,
bodyLeft: 20,
bodyRight: 20,
bodyLine: null,
bodyFont: "HomemadeApple",
bodyColor: "black",
Expand Down
2 changes: 2 additions & 0 deletions src/pages/Editor/sections/OutputComponent/Output.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const OutputComponent = () => {
style={{
fontSize: `${editContext.headValues.headSize}px`,
paddingTop: `${editContext.headValues.headTop}px`,
paddingRight: `${Number(editContext.headValues.headRight) + 3}px`,
paddingLeft: `${Number(editContext.headValues.headLeft) + 3}px`,
lineHeight: `${editContext.headValues.headLine}`,
fontFamily: `${editContext.headValues.headFont}`,
Expand All @@ -49,6 +50,7 @@ const OutputComponent = () => {
style={{
fontSize: `${editContext.bodyValues.bodySize}px`,
paddingTop: `${editContext.bodyValues.bodyTop}px`,
paddingRight: `${Number(editContext.bodyValues.bodyRight) + 3}px`,
paddingLeft: `${Number(editContext.bodyValues.bodyLeft) + 3}px`,
lineHeight: `${editContext.bodyValues.bodyLine}`,
fontFamily: `${editContext.bodyValues.bodyFont}`,
Expand Down

0 comments on commit 19d99dd

Please sign in to comment.