Search UI tweaks (#13965)

* Prevent keyboard shortcuts from running when input is focused

* fix reset button and update time pickers when using input

* simplify css

* consistent button order and spacing
This commit is contained in:
Josh Hawkins
2024-09-25 13:45:42 -05:00
committed by GitHub
parent fef30bc671
commit 32c7669b28
5 changed files with 56 additions and 43 deletions

View File

@@ -414,17 +414,7 @@ export function DateRangePicker({
</div>
)}
</div>
<div className="flex justify-center gap-2 py-2 pr-4">
<Button
onClick={() => {
setIsOpen(false);
resetValues();
onReset?.();
}}
variant="ghost"
>
Reset
</Button>
<div className="mx-auto flex w-64 items-center justify-evenly gap-2 py-2">
<Button
variant="select"
onClick={() => {
@@ -439,6 +429,16 @@ export function DateRangePicker({
>
Apply
</Button>
<Button
onClick={() => {
setIsOpen(false);
resetValues();
onReset?.();
}}
variant="ghost"
>
Reset
</Button>
</div>
</div>
);