Skip to content

Commit 81df783

Browse files
authored
feat(app): adjust date selector ui (#6793)
1 parent f1d6796 commit 81df783

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/wild-walls-pump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'hive': patch
3+
---
4+
5+
Adjust date range selector ui

packages/web/app/src/components/ui/date-range-picker.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export function DateRangePicker(props: DateRangePickerProps): JSX.Element {
314314
<div className="flex flex-col py-4">
315315
<div className="flex flex-col items-center justify-end gap-2 lg:flex-row lg:items-start">
316316
<div className="flex flex-col gap-1 pl-3">
317-
<div className="mb-2 font-bold">Absolute time range</div>
317+
<div className="mb-2 font-bold">Absolute date range</div>
318318
<div className="space-y-2">
319319
<div className="grid w-full max-w-sm items-center gap-1.5">
320320
<Label htmlFor="from">From</Label>
@@ -327,7 +327,7 @@ export function DateRangePicker(props: DateRangePickerProps): JSX.Element {
327327
setFromValue(ev.target.value);
328328
}}
329329
/>
330-
<Button size="icon" variant="ghost" onClick={() => setShowCalendar(true)}>
330+
<Button size="icon" variant="outline" onClick={() => setShowCalendar(true)}>
331331
<CalendarDays className="size-4" />
332332
</Button>
333333
</div>
@@ -350,7 +350,7 @@ export function DateRangePicker(props: DateRangePickerProps): JSX.Element {
350350
setToValue(ev.target.value);
351351
}}
352352
/>
353-
<Button size="icon" variant="ghost" onClick={() => setShowCalendar(true)}>
353+
<Button size="icon" variant="outline" onClick={() => setShowCalendar(true)}>
354354
<CalendarDays className="size-4" />
355355
</Button>
356356
</div>
@@ -366,7 +366,7 @@ export function DateRangePicker(props: DateRangePickerProps): JSX.Element {
366366
</div>
367367

368368
<Button
369-
size="sm"
369+
className="w-full text-center"
370370
onClick={() => {
371371
const fromWithoutWhitespace = fromValue.trim();
372372
const toWithoutWhitespace = toValue.trim();

0 commit comments

Comments
 (0)