-
-
{{ item.i.toUpperCase() }}
+
@@ -750,16 +945,20 @@ onUnmounted(() => {
flex-direction: column;
}
+.card-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ width: 100%;
+ cursor: move;
+ flex-wrap: wrap; /* 添加这行,允许内容换行 */
+ gap: 8px; /* 添加这行,为换行时的元素之间添加间隔 */
+}
+
.card-title {
display: flex;
align-items: center;
- cursor: move;
-
- .anticon {
- margin-right: 8px;
- font-size: 16px;
- color: #1890ff;
- }
+ flex-shrink: 0;
span {
font-size: 16px;
@@ -784,33 +983,7 @@ onUnmounted(() => {
white-space: nowrap;
}
-.drag-handle {
- display: flex;
- align-items: center;
- cursor: move;
- .anticon {
- margin-right: 8px;
- font-size: 16px;
- color: #1890ff;
- }
-
- span {
- font-size: 16px;
- font-weight: 500;
- }
-}
-
-.ne-type-select {
- flex-grow: 1;
- max-width: 100%;
-
- :deep(.ant-checkbox-group) {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- }
-}
:deep {
.ant-card-body {
@@ -840,7 +1013,17 @@ onUnmounted(() => {
}
.ant-card-head {
- cursor: move;
+ padding: 8px 16px; /* 减小上下内边距 */
+ }
+
+ .ant-card-head-title {
+ padding: 8px 0; /* 减小上下内边距 */
+ width: 100%; // 确保标题占据全宽
+ }
+
+ .ant-range-picker {
+ flex-shrink: 0; // 防止日期选择被压缩
+ max-width: 100%; // 确保在小屏幕上不会溢出
}
}