Skip to content

Commit

Permalink
style: align palette icon image
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Kiefer committed Oct 5, 2023
1 parent c0c00e3 commit 3ba4c6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/form-js-editor/assets/form-js-editor-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,8 @@
width: 68px;
}

.fjs-palette-field .fjs-palette-field-icon {
.fjs-palette-field .fjs-palette-field-icon,
.fjs-palette-field .fjs-field-icon-image {
margin: 0 auto;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export function getPaletteIcon(entry) {
let Icon;

if (iconUrl) {
Icon = () => <img class="fjs-field-icon-image" width={ 36 } style={ { margin: 'auto' } } alt={ label } src={ sanitizeImageSource(iconUrl) } />;
Icon = () => <img class="fjs-field-icon-image" width={ 36 } alt={ label } src={ sanitizeImageSource(iconUrl) } />;
} else {
Icon = icon || iconsByType(type);
}
Expand Down

0 comments on commit 3ba4c6a

Please sign in to comment.