diff --git a/nezha-fronted/src/assets/css/index.scss b/nezha-fronted/src/assets/css/index.scss index 1125c34c2..c4c4e2cd1 100644 --- a/nezha-fronted/src/assets/css/index.scss +++ b/nezha-fronted/src/assets/css/index.scss @@ -16,7 +16,7 @@ body { min-width: 1024px; margin:0 !important; padding: 0 !important; - cursor: default !important; + cursor: default; } html { height: 100%; diff --git a/nezha-fronted/src/assets/css/themes/src/input-number.scss b/nezha-fronted/src/assets/css/themes/src/input-number.scss index 4e5109cb8..67594bf49 100644 --- a/nezha-fronted/src/assets/css/themes/src/input-number.scss +++ b/nezha-fronted/src/assets/css/themes/src/input-number.scss @@ -19,7 +19,32 @@ } } - @include e((increase, decrease)) { + @include e(increase) { + position: absolute; + z-index: 1; + top: 1px; + width: $--input-height; + height: auto; + text-align: center; + background: $--background-color-base; + color: $--color-text-regular; + cursor: pointer; + font-size: 13px; + + &:hover { + color: $--color-primary; + + &:not(.is-disabled) ~ .el-input .el-input__inner:not(.is-disabled) { + border-color: $--input-focus-border; + } + } + + &.is-disabled { + color: $--disabled-color-base; + cursor: not-allowed; + } + } + @include e(decrease) { position: absolute; z-index: 1; top: 1px; @@ -58,7 +83,16 @@ } @include when(disabled) { - @include e((increase, decrease)) { + @include e(increase) { + border-color: $--disabled-border-base; + color: $--disabled-border-base; + + &:hover { + color: $--disabled-border-base; + cursor: not-allowed; + } + } + @include e(decrease) { border-color: $--disabled-border-base; color: $--disabled-border-base; diff --git a/nezha-fronted/src/components/common/project/L5/CanvasContextMenu.vue b/nezha-fronted/src/components/common/project/L5/CanvasContextMenu.vue index 1e081d92d..de174644d 100644 --- a/nezha-fronted/src/components/common/project/L5/CanvasContextMenu.vue +++ b/nezha-fronted/src/components/common/project/L5/CanvasContextMenu.vue @@ -1,14 +1,14 @@