Multipart form UI and fixes

This commit is contained in:
Gregory Schier
2023-11-14 00:32:02 -08:00
parent a4f5e4a6b8
commit f60cb35b5e
7 changed files with 113 additions and 45 deletions

View File

@@ -222,8 +222,9 @@ export function Sidebar({ className }: Props) {
useKey(
'ArrowUp',
() => {
(e) => {
if (!hasFocus) return;
e.preventDefault();
const i = selectableRequests.findIndex((r) => r.id === selectedId);
const newSelectable = selectableRequests[i - 1];
if (newSelectable == null) {
@@ -239,8 +240,9 @@ export function Sidebar({ className }: Props) {
useKey(
'ArrowDown',
() => {
(e) => {
if (!hasFocus) return;
e.preventDefault();
const i = selectableRequests.findIndex((r) => r.id === selectedId);
const newSelectable = selectableRequests[i + 1];
if (newSelectable == null) {