[3d] refactor code (#2326)

This commit is contained in:
Terry Jia
2025-01-23 11:26:27 -05:00
committed by GitHub
parent 0ab1d974c0
commit b54e270b10
4 changed files with 1135 additions and 1122 deletions

View File

@@ -765,6 +765,28 @@ audio.comfy-audio.empty-audio-widget {
padding: var(--comfy-tree-explorer-item-padding) !important;
}
/* Load3d styles */
.comfy-load-3d,
.comfy-load-3d-animation,
.comfy-preview-3d {
display: flex;
flex-direction: column;
background: transparent;
flex: 1;
position: relative;
overflow: hidden;
}
.comfy-load-3d canvas,
.comfy-load-3d-animation canvas,
.comfy-preview-3d canvas {
display: flex;
width: 100% !important;
height: 100% !important;
}
/* End of Load3d styles */
/* [Desktop] Electron window specific styles */
.app-drag {
app-region: drag;