diff --git a/components/lib/image/BaseImage.vue b/components/lib/image/BaseImage.vue index a6b580255..463f3cfc3 100644 --- a/components/lib/image/BaseImage.vue +++ b/components/lib/image/BaseImage.vue @@ -71,7 +71,6 @@ const styles = ` const classes = { root: ({ props }) => [ 'p-image p-component', - props.class, { 'p-image-preview-container': props.preview } @@ -82,8 +81,18 @@ const classes = { mask: 'p-image-mask p-component-overlay p-component-overlay-enter', rotateRightButton: 'p-image-action p-link', rotateLeftButton: 'p-image-action p-link', - zoomOutButton: ({ instance }) => ['p-image-action p-link', { 'p-disabled': instance.isZoomOutDisabled }], - zoomInButton: ({ instance }) => ['p-image-action p-link', { 'p-disabled': instance.isZoomInDisabled }], + zoomOutButton: ({ instance }) => [ + 'p-image-action p-link', + { + 'p-disabled': instance.isZoomOutDisabled + } + ], + zoomInButton: ({ instance }) => [ + 'p-image-action p-link', + { + 'p-disabled': instance.isZoomInDisabled + } + ], closeButton: 'p-image-action p-link', preview: 'p-image-preview' }; diff --git a/components/lib/image/Image.vue b/components/lib/image/Image.vue index 65c50641f..ef111e79b 100644 --- a/components/lib/image/Image.vue +++ b/components/lib/image/Image.vue @@ -1,5 +1,5 @@