Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/components/load3d/Load3DScene.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
ref="container"
class="relative h-full w-full"
class="relative h-full w-full min-h-0 overflow-hidden"
Comment thread
jtydhr88 marked this conversation as resolved.
Outdated
data-capture-wheel="true"
@pointerdown.stop
@pointermove.stop
Expand Down Expand Up @@ -65,3 +65,15 @@ onUnmounted(() => {
props.cleanup()
})
</script>

<style scoped>

@DrJKL DrJKL Dec 18, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to avoid new <style> or <style scoped> tags.
Is there a way you can target these to the canvas directly?

Also, same question about any !importants. There's always ™️ a better way.

@DrJKL DrJKL Dec 18, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kaili-yang kaili-yang Dec 19, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate the guidance and the good example. 👍 I’ll revise the code and align with the approach going forward.

:deep(canvas) {
position: absolute !important;
top: 0;
left: 0;
width: 100% !important;
height: 100% !important;
display: block !important;
outline: none;
}
</style>
Loading