diff --git a/frontend/src/components/config/util.tsx b/frontend/src/components/config/util.tsx index 3b6008dee..e167f32d6 100644 --- a/frontend/src/components/config/util.tsx +++ b/frontend/src/components/config/util.tsx @@ -35,6 +35,7 @@ import { CommandGroup, CommandInput, CommandItem, + CommandList, } from "@ui/command"; import { snake_case_to_upper_space_case } from "@lib/formatting"; @@ -194,21 +195,24 @@ export const ResourceSelector = ({ value={input} onValueChange={setInput} /> - - {`No ${type}s Found`} - - - - {resources.map((resource) => ( - onSelect && onSelect(resource.id)} - className="flex items-center justify-between" - > -
{resource.name}
-
- ))} -
+ + + {`No ${type}s Found`} + + + + + {resources.map((resource) => ( + onSelect && onSelect(resource.id)} + className="flex items-center justify-between" + > +
{resource.name}
+
+ ))} +
+
diff --git a/frontend/src/components/omnibar.tsx b/frontend/src/components/omnibar.tsx index e11c7692d..274c90b5b 100644 --- a/frontend/src/components/omnibar.tsx +++ b/frontend/src/components/omnibar.tsx @@ -19,36 +19,6 @@ import { DeploymentComponents } from "./resources/deployment"; import { BuildComponents } from "./resources/build"; import { ServerComponents } from "./resources/server"; -const ResourceGroup = ({ - type, - onSelect, -}: { - type: UsableResource; - onSelect: (value: string) => void; -}) => { - const data = useRead(`List${type}s`, {}).data; - const Components = ResourceComponents[type]; - - if (!data || !data.length) return - - return ( - - {data?.map(({ id }) => { - return ( - onSelect(`/${type.toLowerCase()}s/${id}`)} - > - - - - ); - })} - - ); -}; - export const Omnibar = () => { const [open, set] = useState(false); const navigate = useNavigate(); @@ -88,6 +58,7 @@ export const Omnibar = () => { No results found. + { ); }; + +const ResourceGroup = ({ + type, + onSelect, +}: { + type: UsableResource; + onSelect: (value: string) => void; +}) => { + const data = useRead(`List${type}s`, {}).data; + const Components = ResourceComponents[type]; + + if (!data || !data.length) return; + + return ( + + {data?.map(({ id }) => { + return ( + onSelect(`/${type.toLowerCase()}s/${id}`)} + > + + + + ); + })} + + ); +}; \ No newline at end of file diff --git a/frontend/src/globals.css b/frontend/src/globals.css index bf383d93e..725b1f4e0 100644 --- a/frontend/src/globals.css +++ b/frontend/src/globals.css @@ -52,7 +52,7 @@ --muted: 220.1 40.1% 98.2%; --muted-foreground: 220.1 20.1% 40.2%; - --accent: 220.1 40.1% 98.2%; + --accent: 220.1 40.1% 90.2%; --accent-foreground: 220.1 40.1% 11.2%; --destructive: 0 80.1% 60.2%; diff --git a/frontend/src/ui/command.tsx b/frontend/src/ui/command.tsx index ad1e4ae73..83fd9f1be 100644 --- a/frontend/src/ui/command.tsx +++ b/frontend/src/ui/command.tsx @@ -115,7 +115,7 @@ const CommandItem = React.forwardRef<