From 7ffbcd8b9bc48bb09a7f4d64330ea52a3bee14d0 Mon Sep 17 00:00:00 2001 From: Kurtil Date: Wed, 5 Jan 2022 15:06:42 +0100 Subject: [PATCH] PATCH: fix icon rotation --- src/BIMDataComponents/BIMDataIcon/BIMDataIcon.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/BIMDataComponents/BIMDataIcon/BIMDataIcon.vue b/src/BIMDataComponents/BIMDataIcon/BIMDataIcon.vue index d8704ff5..92afb9d4 100644 --- a/src/BIMDataComponents/BIMDataIcon/BIMDataIcon.vue +++ b/src/BIMDataComponents/BIMDataIcon/BIMDataIcon.vue @@ -97,14 +97,17 @@ export default { }, style() { const pixelSize = this.getPixelSize(this.size); - return { + const style = { width: `${pixelSize}px`, minWidth: `${pixelSize}px`, height: `${pixelSize}px`, minHeight: `${pixelSize}px`, margin: `${this.margin}`, - transform: `rotate(${this.rotate}deg)`, }; + if (this.rotation > 0) { + style.transform = `rotate(${this.rotate}deg)`; + } + return style; }, }, methods: {