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 (
@@ -44,7 +50,7 @@ export function ItemFieldContextMenu(props: { return (
diff --git a/components/dashboard/src/workspaces/WorkspaceEntry.tsx b/components/dashboard/src/workspaces/WorkspaceEntry.tsx index 27559d6e44bec5..60514c26f3ea9f 100644 --- a/components/dashboard/src/workspaces/WorkspaceEntry.tsx +++ b/components/dashboard/src/workspaces/WorkspaceEntry.tsx @@ -56,9 +56,15 @@ export const WorkspaceEntry: FunctionComponent = ({ info, shortVersion }) [workspace.id], ); + let gridCol = + "grid-cols-[minmax(32px,32px),minmax(100px,auto),minmax(100px,300px),minmax(80px,160px),minmax(32px,32px),minmax(32px,32px)]"; + if (shortVersion) { + gridCol = "grid-cols-[minmax(32px,32px),minmax(100px,auto)]"; + } + return ( - - + +
@@ -77,7 +83,7 @@ export const WorkspaceEntry: FunctionComponent = ({ info, shortVersion })
{!shortVersion && ( <> -
+
@@ -86,14 +92,11 @@ export const WorkspaceEntry: FunctionComponent = ({ info, shortVersion }) {currentBranch}
-
+
-
- -
-
+
= ({ info, shortVersion })
-
+