Skip to content

Commit 1160c1e

Browse files
committed
fix(editor2): skill level input should have resize cursor when focused
1 parent cf4dc63 commit 1160c1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/editor2/operator/OperatorItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export const OperatorItem: FC<OperatorItemProps> = memo(
340340
buttonPosition="none"
341341
value={skillLevel <= 7 ? skillLevel : ''} // 大于 7 级时置空然后用 padding 占位,以留出空间在上面放置专精图标
342342
inputClassName={clsx(
343-
'!w-8 h-8 !p-0 !leading-8 !bg-transparent text-center font-bold text-xl !text-inherit !rounded-none !border-2 !border-current cursor-pointer focus:cursor-text',
343+
'!w-8 h-8 !p-0 !leading-8 !bg-transparent text-center font-bold text-xl !text-inherit !rounded-none !border-2 !border-current [&:not(:focus)]:cursor-pointer',
344344
skillLevel > 7 && '!pl-4',
345345
)}
346346
onFocus={() => {

0 commit comments

Comments
 (0)