diff --git a/src/BIMDataComponents/BIMDataModelPreview/BIMDataModelPreview.vue b/src/BIMDataComponents/BIMDataModelPreview/BIMDataModelPreview.vue index 2b0f07f2..ad54241d 100644 --- a/src/BIMDataComponents/BIMDataModelPreview/BIMDataModelPreview.vue +++ b/src/BIMDataComponents/BIMDataModelPreview/BIMDataModelPreview.vue @@ -1,7 +1,8 @@ @@ -21,9 +22,13 @@ export default { default: "3d", validator: v => ["2d", "3d"].includes(v), }, - size: { - type: String, - default: "205px", + width: { + type: Number, + default: 240, + }, + height: { + type: Number, + default: 240, }, previewUrl: { type: String, diff --git a/src/BIMDataComponents/BIMDataModelPreview/Preview2D.scss b/src/BIMDataComponents/BIMDataModelPreview/Preview2D.scss deleted file mode 100644 index 160ea7dc..00000000 --- a/src/BIMDataComponents/BIMDataModelPreview/Preview2D.scss +++ /dev/null @@ -1,34 +0,0 @@ -.preview-2d { - position: relative; - height: 100%; - background-color: var(--color-silver-light); - user-select: none; - overflow: hidden; - - img { - width: 100%; - height: 100%; - object-fit: contain; - } - - .zoom { - position: absolute; - top: -50px; - left: -50px; - width: 100px; - height: 100px; - border-radius: 50%; - box-shadow: var(--box-shadow); - background-color: var(--color-white); - overflow: hidden; - - pointer-events: none; - } - - .zoomImage { - position: absolute; - top: 50px; - left: 50px; - transform-origin: top left; - } -} diff --git a/src/BIMDataComponents/BIMDataModelPreview/Preview2D.vue b/src/BIMDataComponents/BIMDataModelPreview/Preview2D.vue index 648f55b0..4669b617 100644 --- a/src/BIMDataComponents/BIMDataModelPreview/Preview2D.vue +++ b/src/BIMDataComponents/BIMDataModelPreview/Preview2D.vue @@ -1,7 +1,6 @@