|
|
|
|
@ -49,10 +49,11 @@ html {
|
|
|
|
|
border-bottom: 2px solid #667eea;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Components panel */
|
|
|
|
|
/* 组件面板 */
|
|
|
|
|
#components-panel {
|
|
|
|
|
position: relative;
|
|
|
|
|
flex: 1;
|
|
|
|
|
width: 150px; /* 固定宽度 */
|
|
|
|
|
flex: none; /* 禁用flex伸缩 */
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
border-right: 1px solid #e0e0e0;
|
|
|
|
|
display: flex;
|
|
|
|
|
@ -64,14 +65,12 @@ html {
|
|
|
|
|
padding: 10px;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
align-content: flex-start;
|
|
|
|
|
flex-direction: column; /* 垂直堆叠组件 */
|
|
|
|
|
gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.component-item {
|
|
|
|
|
width: calc(50% - 5px);
|
|
|
|
|
width: 100%; /* 组件宽度占满父容器,实现一行一个 */
|
|
|
|
|
height: 120px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
@ -117,17 +116,18 @@ html {
|
|
|
|
|
.action-btn {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 50px;
|
|
|
|
|
height: auto; /* 高度自适应内容 */
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column; /* 子元素垂直堆叠 */
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
padding: 10px; /* 添加垂直内边距 */
|
|
|
|
|
}
|
|
|
|
|
.action-btn .trash-container,
|
|
|
|
|
.action-btn .save-container {
|
|
|
|
|
width: 46%;
|
|
|
|
|
width: 100%; /* 宽度占满父容器 */
|
|
|
|
|
height: 40px;
|
|
|
|
|
margin: 0 2%;
|
|
|
|
|
margin: 5px 0; /* 添加垂直外边距,移除水平外边距 */
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|