Skip to content

Commit a3b8cd4

Browse files
oodwinEdwin Lam
andauthored
Made editor button icons consistent (#293)
Co-authored-by: Edwin Lam <[email protected]>
1 parent 8a72143 commit a3b8cd4

15 files changed

+234
-55
lines changed
Lines changed: 16 additions & 11 deletions
Loading
Lines changed: 55 additions & 0 deletions
Loading
Lines changed: 39 additions & 5 deletions
Loading

frontend/src/cse-ui-kit/assets/leftalign-button.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Loading

frontend/src/cse-ui-kit/assets/middlealign-button.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

frontend/src/cse-ui-kit/assets/rightalign-button.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 48 additions & 1 deletion
Loading

frontend/src/cse-ui-kit/small_buttons/BoldButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export default function BoldButton({
1414
}: Props) {
1515
return (
1616
<StyledButton onClick={onClick} onMouseDown={onMouseDown} {...styleProps}>
17-
<Bold
18-
height={styleProps.size * scaleRate.smallButtonRate}
19-
width={styleProps.size * scaleRate.smallButtonRate}
17+
<Bold
18+
height={styleProps.size * scaleRate}
19+
width={styleProps.size * scaleRate}
2020
/>
2121
</StyledButton>
2222
);

frontend/src/cse-ui-kit/small_buttons/CenterAlignButton.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { MouseEventHandler } from 'react';
22
import { StyledButton, buttonProps, scaleRate } from './small_buttons-Styled';
3-
import AlignHorizontalCenterIcon from '@mui/icons-material/AlignHorizontalCenter';
3+
import { ReactComponent as CenterAlign } from 'src/cse-ui-kit/assets/centeralign-button.svg';
44

55
type Props = {
66
onClick?: MouseEventHandler<HTMLDivElement>;
@@ -14,9 +14,9 @@ export default function CenterAlignButton({
1414
}: Props) {
1515
return (
1616
<StyledButton onClick={onClick} onMouseDown={onMouseDown} {...styleProps}>
17-
<AlignHorizontalCenterIcon
18-
height={styleProps.size * scaleRate.smallButtonRate}
19-
width={styleProps.size * scaleRate.smallButtonRate}
17+
<CenterAlign
18+
height={styleProps.size * scaleRate}
19+
width={styleProps.size * scaleRate}
2020
/>
2121
</StyledButton>
2222
);

0 commit comments

Comments
 (0)