diff --git a/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue b/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue
index 5bfa1b96e..946766a53 100644
--- a/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue
+++ b/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue
@@ -347,7 +347,7 @@ onUnmounted(() => {
:is="FieldComponent"
ref="fieldComponentRef"
:class="{
- 'border-destructive hover:border-destructive/80 focus:border-destructive focus:shadow-[0_0_0_2px_rgba(255,38,5,0.06)]':
+ 'border-destructive hover:border-destructive/80 focus:border-destructive focus:shadow-[0_0_0_calc(var(--spacing)*0.5)_rgba(255,38,5,0.06)]':
isInValid,
}"
v-bind="createComponentProps(slotProps)"
diff --git a/packages/@core/ui-kit/layout-ui/src/vben-layout.vue b/packages/@core/ui-kit/layout-ui/src/vben-layout.vue
index 8f3c0c516..85b645ad3 100644
--- a/packages/@core/ui-kit/layout-ui/src/vben-layout.vue
+++ b/packages/@core/ui-kit/layout-ui/src/vben-layout.vue
@@ -548,7 +548,8 @@ const idMainContent = ELEMENT_ID_MAIN_CONTENT;
{
is(rootMenu.theme, true),
opened ? '' : 'hidden',
'overflow-auto',
- 'max-h-[calc(var(--reka-hover-card-content-available-height)-20px)]',
+ 'max-h-[calc(var(--reka-hover-card-content-available-height)-calc(var(--spacing)*5))]',
mode === 'horizontal' ? 'is-horizontal' : '',
]"
:content-props="contentProps"
diff --git a/packages/@core/ui-kit/tabs-ui/src/components/tabs-chrome/tabs.vue b/packages/@core/ui-kit/tabs-ui/src/components/tabs-chrome/tabs.vue
index 9c7eb15d0..9229f3c84 100644
--- a/packages/@core/ui-kit/tabs-ui/src/components/tabs-chrome/tabs.vue
+++ b/packages/@core/ui-kit/tabs-ui/src/components/tabs-chrome/tabs.vue
@@ -113,7 +113,7 @@ function onMouseDown(e: MouseEvent, tab: TabConfig) {
>
{
},
card: {
content:
- 'h-[calc(100%-6px)] rounded-md ml-2 border border-border transition-all',
+ 'h-[calc(100%-calc(var(--spacing)*1.5))] rounded-md ml-2 border border-border transition-all',
},
plain: {
content:
diff --git a/packages/effects/common-ui/src/components/cropper/cropper.vue b/packages/effects/common-ui/src/components/cropper/cropper.vue
index 07b103aba..207fb5fdb 100644
--- a/packages/effects/common-ui/src/components/cropper/cropper.vue
+++ b/packages/effects/common-ui/src/components/cropper/cropper.vue
@@ -921,19 +921,19 @@ defineExpose({ getCropImage });
}
.cropper-line-e {
- @apply top-0 right-[-3px] h-full w-1;
+ @apply top-0 -right-0.75 h-full w-1;
}
.cropper-line-n {
- @apply top-[-3px] left-0 h-1 w-full;
+ @apply -top-0.75 left-0 h-1 w-full;
}
.cropper-line-w {
- @apply top-0 left-[-3px] h-full w-1;
+ @apply top-0 -left-0.75 h-full w-1;
}
.cropper-line-s {
- @apply bottom-[-3px] left-0 h-1 w-full;
+ @apply -bottom-0.75 left-0 h-1 w-full;
}
/* 拖拽点 */
@@ -947,35 +947,35 @@ defineExpose({ getCropImage });
/* 边角拖拽点位置和光标 */
.cropper-point-ne {
- @apply top-[-5px] right-[-5px] cursor-ne-resize;
+ @apply -top-1.25 -right-1.25 cursor-ne-resize;
}
.cropper-point-nw {
- @apply top-[-5px] left-[-5px] cursor-nw-resize;
+ @apply -top-1.25 -left-1.25 cursor-nw-resize;
}
.cropper-point-sw {
- @apply bottom-[-5px] left-[-5px] cursor-sw-resize;
+ @apply -bottom-1.25 -left-1.25 cursor-sw-resize;
}
.cropper-point-se {
- @apply right-[-5px] bottom-[-5px] cursor-se-resize;
+ @apply -right-1.25 -bottom-1.25 cursor-se-resize;
}
/* 边中点拖拽点位置和光标 */
.cropper-point-e {
- @apply top-1/2 right-[-5px] -mt-1 cursor-e-resize;
+ @apply top-1/2 -right-1.25 -mt-1 cursor-e-resize;
}
.cropper-point-n {
- @apply top-[-5px] left-1/2 -ml-1 cursor-n-resize;
+ @apply -top-1.25 left-1/2 -ml-1 cursor-n-resize;
}
.cropper-point-w {
- @apply top-1/2 left-[-5px] -mt-1 cursor-w-resize;
+ @apply top-1/2 -left-1.25 -mt-1 cursor-w-resize;
}
.cropper-point-s {
- @apply bottom-[-5px] left-1/2 -ml-1 cursor-s-resize;
+ @apply -bottom-1.25 left-1/2 -ml-1 cursor-s-resize;
}