fix(elements): delay hiding sidebar and properties panels during native-mode transition and use transparent rgba border for frame to avoid layout jumps

This commit is contained in:
2026-01-04 11:43:54 +00:00
parent 8c60d3bea3
commit 28d1227d30
5 changed files with 47 additions and 6 deletions
+3 -3
View File
@@ -28,7 +28,7 @@ export class WccFrame extends DeesElement {
public static styles = [
css`
:host {
border: 10px solid #ffaeaf;
border: 10px solid rgba(255, 174, 175, 1);
position: absolute;
background: ${cssManager.bdTheme('#333', '#000')};
right: 0px;
@@ -52,14 +52,14 @@ export class WccFrame extends DeesElement {
<style>
:host {
${this.isNative ? `
border: none !important;
border: 0px solid rgba(255, 174, 175, 0) !important;
left: 0px !important;
right: 0px !important;
top: 0px !important;
bottom: 0px !important;
` : `
bottom: ${this.advancedEditorOpen ? '400px' : '100px'};
border: 10px solid #ffaeaf;
border: 10px solid rgba(255, 174, 175, 1);
left: ${this.sidebarWidth}px;
`}
transition: ${this.isResizing ? 'none' : 'all 0.3s ease'};