Skip to content

Commit

Permalink
Fix icons styling
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Oct 7, 2020
1 parent 65945e5 commit d9c50e4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/StyleWrapper/StyleWrapperView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default (props) => {
'block align',
style?.cssClass,
{
center: !Boolean(align),
left: !Boolean(align),
},
align,
)}
Expand Down
12 changes: 7 additions & 5 deletions src/Widgets/Size.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ const SizeWidget = (props) => {
const { id, onChange, value } = props;
return (
<FormFieldWrapper {...props}>
<ImageSizeWidget
onChangeBlock={(id, { size }) => onChange(id, size)}
data={{ size: value }}
block={id}
/>
<div className="align-tools">
<ImageSizeWidget
onChangeBlock={(id, { size }) => onChange(id, size)}
data={{ size: value }}
block={id}
/>
</div>
</FormFieldWrapper>
);
};
Expand Down
30 changes: 16 additions & 14 deletions src/Widgets/TextAlign.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,24 @@ export default (props) => {
const { value, onChange, id } = props;
return (
<FormFieldWrapper {...props}>
<Button.Group>
<div className="align-tools">
{VALUE_MAP.map(([name, icon]) => (
<Button
icon
basic
compact
active={value === name}
aria-label={name}
onClick={() => {
onChange(id, name);
}}
>
<Icon name={icon} size="24px" />
</Button>
<Button.Group>
<Button
icon
basic
compact
active={value === name}
aria-label={name}
onClick={() => {
onChange(id, name);
}}
>
<Icon name={icon} size="24px" />
</Button>
</Button.Group>
))}
</Button.Group>
</div>
</FormFieldWrapper>
);
};

0 comments on commit d9c50e4

Please sign in to comment.