diff --git a/demoHtml/flex/css/index.css b/demoHtml/flex/css/index.css index bf6c47b..dc4a472 100644 --- a/demoHtml/flex/css/index.css +++ b/demoHtml/flex/css/index.css @@ -35,24 +35,29 @@ html { .component-item { width: calc(50% - 5px); - display: flex; height: 80px; + border-radius: 8px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; +} +.component-item .grid-stack-item-content { + width: 100%; + height: 100%; + display: flex; flex-direction: column; align-items: center; justify-content: center; - padding: 20px; - border: 1px solid #e0e0e0; - border-radius: 8px; - text-align: left; - cursor: pointer; - transition: all 0.3s ease; - background-color: #fafafa; } -.component-item:hover { - transform: translateY(-5px); - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); - border-color: #007bff; +#canvas-panel .grid-stack-item-content { + height: auto; +} + +#components-panel .grid-stack-item { + background-color: #fff; + border: 1px solid #e0e0e0; } .component-item i { @@ -70,9 +75,9 @@ html { flex: 4; height: 100%; background-color: #f9f9f9; - margin: 0; position: relative; - overflow-y: scroll; + overflow-y: auto; + padding: 10px; } .grid-stack-item-content { cursor: pointer; @@ -83,6 +88,7 @@ html { position: absolute; top: 20px; right: 20px; + z-index: 99; } .global-save-button { @@ -103,7 +109,7 @@ html { /* Props panel */ #props-panel { flex: 1; - padding: 20px; + padding: 10px; background-color: #fff; overflow-y: auto; border-left: 1px solid #e0e0e0; diff --git a/demoHtml/flex/index.html b/demoHtml/flex/index.html index 59199f9..b090e3f 100644 --- a/demoHtml/flex/index.html +++ b/demoHtml/flex/index.html @@ -26,12 +26,24 @@