Skip to content

Commit

Permalink
fix(deploy-web): styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed May 9, 2024
1 parent c60e392 commit 10a1d17
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
22 changes: 15 additions & 7 deletions deploy-web/src/components/deployments/DeploymentListRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -62,7 +62,8 @@ export const DeploymentListRow: React.FunctionComponent<Props> = ({ deployment,
<CustomTooltip
title={
<>
{deployment.name}-{deployment.dseq}
<div>{deployment.name}</div>
<small>{deployment.dseq}</small>
</>
}
>
Expand All @@ -74,7 +75,14 @@ export const DeploymentListRow: React.FunctionComponent<Props> = ({ deployment,
</span>
</CustomTooltip>
) : (
<CustomTooltip title={deployment.dseq}>
<CustomTooltip
title={
<>
<div>{deployment.name}</div>
<small>{deployment.dseq}</small>
</>
}
>
<span className="text-sm">
<strong>{deployment.name}</strong>
<span className="inline text-xs">
Expand Down Expand Up @@ -185,8 +193,8 @@ export const DeploymentListRow: React.FunctionComponent<Props> = ({ deployment,
<TableCell className="max-w-[100px] text-center">{deploymentName}</TableCell>
<TableCell className="text-center">
{isActive && isValidTimeLeft && realTimeLeft && (
<span>
~{formatDistanceToNow(realTimeLeft?.timeLeft)}
<div className="inline-flex items-center space-x-2">
<span>~{formatDistanceToNow(realTimeLeft?.timeLeft)}</span>
{showTimeLeftWarning && (
<CustomTooltip
title={
Expand All @@ -199,10 +207,10 @@ export const DeploymentListRow: React.FunctionComponent<Props> = ({ deployment,
</>
}
>
<WarningCircle className="ml-2 text-xs text-destructive-foreground" />
<WarningTriangle className="text-xs text-warning" />
</CustomTooltip>
)}
</span>
</div>
)}
</TableCell>
<TableCell className="text-center">
Expand Down
2 changes: 1 addition & 1 deletion deploy-web/src/components/sdl/GpuFormControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const GpuFormControl: React.FunctionComponent<Props> = ({ gpuModels, cont
};

return (
<FormPaper className="p-4">
<FormPaper>
<div className="flex items-center">
<Controller
control={control}
Expand Down
2 changes: 1 addition & 1 deletion deploy-web/src/components/shared/Spinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Spinner({ className, size = "medium", variant = "primary
<svg
aria-hidden="true"
className={cn("animate-spin ", {
"fill-red-200 text-red-500": variant === "primary",
"fill-red-200 text-red-500 dark:text-transparent/20 dark:fill-red-500": variant === "primary",
"fill-red-500 text-white": variant === "dark",
"h-4 w-4": size === "small",
"h-8 w-8": size === "medium",
Expand Down

0 comments on commit 10a1d17

Please sign in to comment.