From 10a1d17b820a652775e3795379ce41d9ef22b4f5 Mon Sep 17 00:00:00 2001 From: Maxime Beauchamp Date: Thu, 9 May 2024 12:02:27 -0400 Subject: [PATCH] fix(deploy-web): styling fixes --- .../deployments/DeploymentListRow.tsx | 22 +++++++++++++------ .../src/components/sdl/GpuFormControl.tsx | 2 +- deploy-web/src/components/shared/Spinner.tsx | 2 +- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/deploy-web/src/components/deployments/DeploymentListRow.tsx b/deploy-web/src/components/deployments/DeploymentListRow.tsx index 9611c782a..ac00d038c 100644 --- a/deploy-web/src/components/deployments/DeploymentListRow.tsx +++ b/deploy-web/src/components/deployments/DeploymentListRow.tsx @@ -23,7 +23,7 @@ import { PricePerMonth } from "../shared/PricePerMonth"; import { udenomToDenom } from "@src/utils/mathHelpers"; import { useDenomData } from "@src/hooks/useWalletBalance"; import { TableCell, TableRow } from "../ui/table"; -import { WarningCircle, MoreHoriz, InfoCircle, NavArrowRight, Plus, Edit, XmarkSquare, Upload } from "iconoir-react"; +import { WarningCircle, MoreHoriz, InfoCircle, NavArrowRight, Plus, Edit, XmarkSquare, Upload, WarningTriangle } from "iconoir-react"; import { CustomDropdownLinkItem } from "../shared/CustomDropdownLinkItem"; import { Button } from "../ui/button"; import { Checkbox } from "../ui/checkbox"; @@ -62,7 +62,8 @@ export const DeploymentListRow: React.FunctionComponent = ({ deployment, - {deployment.name}-{deployment.dseq} +
{deployment.name}
+ {deployment.dseq} } > @@ -74,7 +75,14 @@ export const DeploymentListRow: React.FunctionComponent = ({ deployment,
) : ( - + +
{deployment.name}
+ {deployment.dseq} + + } + > {deployment.name} @@ -185,8 +193,8 @@ export const DeploymentListRow: React.FunctionComponent = ({ deployment, {deploymentName} {isActive && isValidTimeLeft && realTimeLeft && ( - - ~{formatDistanceToNow(realTimeLeft?.timeLeft)} +
+ ~{formatDistanceToNow(realTimeLeft?.timeLeft)} {showTimeLeftWarning && ( = ({ deployment, } > - + )} - +
)}
diff --git a/deploy-web/src/components/sdl/GpuFormControl.tsx b/deploy-web/src/components/sdl/GpuFormControl.tsx index 343b44f1d..67c1583e3 100644 --- a/deploy-web/src/components/sdl/GpuFormControl.tsx +++ b/deploy-web/src/components/sdl/GpuFormControl.tsx @@ -48,7 +48,7 @@ export const GpuFormControl: React.FunctionComponent = ({ gpuModels, cont }; return ( - +