Skip to content

Commit

Permalink
feat(editor-toolbar): improve font size dropdown and atom configs
Browse files Browse the repository at this point in the history
This commit improves the font size dropdown component by adding a space between the font size value and the "px" unit in the label. It also cleans up the atom configs by removing an unnecessary empty line.
  • Loading branch information
ktun95 committed Feb 18, 2025
1 parent 0f54067 commit d667da4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const title = "Font Size"
const genFontSize = (start: number, end: number) =>
[...new Array(end - start + 1).keys()]
.map((x) => x + start)
.map((x) => ({ value: `${x}px`, label: `${x}`}))
.map((x) => ({ value: `${x}px`, label: `${x}` }))

const FontSizeDropdown = ({
start = 10,
Expand Down
1 change: 0 additions & 1 deletion packages/editor-toolbar/src/context/atomConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ enum BlockTypes {
QUOTE = "quote",
}


const formatAtom = atom({
isBold: false,
isItalic: false,
Expand Down

0 comments on commit d667da4

Please sign in to comment.