1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 00:09:40 +02:00

feat(gpu) EE-3191 Add GPU support for containers (#7146)

This commit is contained in:
congs 2022-07-18 11:02:14 +12:00 committed by GitHub
parent f0456cbf5f
commit 4997e9c7be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
43 changed files with 758 additions and 10 deletions

View file

@ -15,12 +15,19 @@ export function useInputGroupContext() {
interface Props {
size?: Size;
className?: string;
}
export function InputGroup({ children, size }: PropsWithChildren<Props>) {
export function InputGroup({
children,
size,
className,
}: PropsWithChildren<Props>) {
return (
<Context.Provider value>
<div className={clsx('input-group', sizeClass(size))}>{children}</div>
<div className={clsx('input-group', sizeClass(size), className)}>
{children}
</div>
</Context.Provider>
);
}

View file

@ -8,6 +8,7 @@ interface InputGroupSubComponents {
Addon: typeof InputGroupAddon;
ButtonWrapper: typeof InputGroupButtonWrapper;
Input: typeof Input;
className: string | undefined;
}
const InputGroup: typeof MainComponent & InputGroupSubComponents =

View file

@ -31,6 +31,7 @@
background-color: var(--bg-multiselect-color);
border: 1px solid var(--border-multiselect);
padding: 5px;
z-index: 10;
}
.root :global .selector__option {