From 835fa7bd996c10919d0968d923ef43245cd1cb85 Mon Sep 17 00:00:00 2001 From: Ilya Mukhortov Date: Sat, 24 Oct 2026 08:07:36 +1000 Subject: [PATCH] TimeRangeInput: minimal width, remove button overlays the corner Co-Authored-By: Claude Opus 5.5 --- src/kit/time-range-input.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/kit/time-range-input.tsx b/src/kit/time-range-input.tsx index 6457a8e..c3d7f31 100644 --- a/src/kit/time-range-input.tsx +++ b/src/kit/time-range-input.tsx @@ -20,14 +20,15 @@ export function TimeRangeInput({ className?: string }) { const invalid = Boolean(value.from && value.to && value.to <= value.from) + // Ширина ровно под «ЧЧ:ММ»: моноширинный шрифт, без иконки часов и внутренних отступов браузера. const input = - "h-7 w-[4.6rem] rounded-md bg-transparent px-1 font-mono text-xs tabular outline-none focus:bg-accent/60 [&::-webkit-calendar-picker-indicator]:hidden" + "h-6 w-[calc(5ch+12px)] rounded bg-transparent px-[3px] font-mono text-xs tabular outline-none focus:bg-accent/60 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-datetime-edit]:p-0 [&::-webkit-datetime-edit-fields-wrapper]:p-0" return (
onChange({ ...value, from: e.target.value })} className={input} /> - – + – - + )}