diff --git a/components/dashboard/src/components/ItemsList.tsx b/components/dashboard/src/components/ItemsList.tsx index e0565beb9ae9bd..3457f31e57fe02 100644 --- a/components/dashboard/src/components/ItemsList.tsx +++ b/components/dashboard/src/components/ItemsList.tsx @@ -11,13 +11,19 @@ export function ItemsList(props: { children?: React.ReactNode; className?: strin } export function Item(props: { children?: React.ReactNode; className?: string; header?: boolean; solid?: boolean }) { + let layoutClassName = "flex flex-grow flex-row justify-between"; + // set layoutClassName to "" if className contains 'grid' + if (props.className?.includes("grid")) { + layoutClassName = ""; + } + // cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-700 const solidClassName = props.solid ? "bg-gray-100 dark:bg-gray-800" : "hover:bg-gray-100 dark:hover:bg-gray-800"; const headerClassName = "text-sm text-gray-400 border-t border-b border-gray-200 dark:border-gray-800"; const notHeaderClassName = "rounded-xl focus:bg-kumquat-light " + solidClassName; return (