Skip to content

Commit 162f8fd

Browse files
committed
chore: Adjust default input size length
1 parent 70fa588 commit 162f8fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/uiUtil.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ export function getDefaultFormat(
148148
}
149149

150150
export function getInputSize(picker: PickerMode | undefined, format: string) {
151-
const defaultSize = picker === 'time' ? 9 : 11;
152-
return Math.max(defaultSize, format.length + 2);
151+
const defaultSize = picker === 'time' ? 8 : 10;
152+
return Math.max(defaultSize, format.length);
153153
}
154154

155155
// ====================== Mode ======================

0 commit comments

Comments
 (0)