|
1 | | -import { useSettingsSectionSearch } from "@/components/service/panel/content/deployed/settings/settings-search-provider"; |
2 | | -import { settingsIds } from "@/components/settings/settings-ids"; |
3 | | -import Banner from "@/components/banner"; |
4 | 1 | import { |
5 | 2 | Block, |
6 | 3 | BlockItem, |
7 | 4 | BlockItemContent, |
| 5 | + BlockItemContentHighlightable, |
8 | 6 | BlockItemDescription, |
9 | 7 | BlockItemHeader, |
10 | | - BlockItemContentHighlightable, |
11 | 8 | BlockItemTitle, |
12 | 9 | } from "@/components/block"; |
13 | 10 | import { shouldDeploySectionHaveReplicas } from "@/components/service/panel/content/deployed/settings/helpers"; |
| 11 | +import { useSettingsSectionSearch } from "@/components/service/panel/content/deployed/settings/settings-search-provider"; |
14 | 12 | import { |
| 13 | + hasApplying, |
15 | 14 | stagedNumber, |
16 | 15 | useResetFormOnStagedChange, |
17 | | - hasApplying, |
18 | 16 | useServiceChanges, |
19 | 17 | } from "@/components/service/panel/content/deployed/settings/use-service-changes"; |
20 | | -import type { TServiceChangeField } from "@/components/staged-changes/types"; |
21 | 18 | import ErrorWithWrapper from "@/components/settings/error-with-wrapper"; |
22 | 19 | import { RevertButton } from "@/components/settings/revert-button"; |
| 20 | +import { settingsIds } from "@/components/settings/settings-ids"; |
23 | 21 | import { SettingsSection } from "@/components/settings/settings-section"; |
| 22 | +import type { TServiceChangeField } from "@/components/staged-changes/types"; |
24 | 23 | import { cn } from "@/components/ui/utils"; |
25 | 24 | import { useAppForm } from "@/lib/hooks/use-app-form"; |
26 | 25 | import { TServiceShallow } from "@/lib/queries/services"; |
27 | | -import { InfoIcon, LockIcon, RocketIcon } from "lucide-react"; |
28 | 26 | import { useStore } from "@tanstack/react-form"; |
| 27 | +import { InfoIcon, LockIcon, RocketIcon } from "lucide-react"; |
29 | 28 | import { useMemo } from "react"; |
30 | 29 |
|
31 | 30 | type TProps = { |
@@ -208,15 +207,14 @@ function Section({ service }: { service: TServiceShallow }) { |
208 | 207 | /> |
209 | 208 | </div> |
210 | 209 | {isReplicaCountLocked && ( |
211 | | - <div className="w-full px-1.5"> |
212 | | - <Banner className="bg-process/3-10 border-process/3-10 text-process rounded-md px-2.5 py-2 md:max-w-none"> |
213 | | - <div className="line-icon"> |
214 | | - <InfoIcon className="-ml-0.5 size-4 shrink-0" /> |
215 | | - </div> |
216 | | - <p className="min-w-0 shrink"> |
217 | | - Services with a volume run a single replica. |
218 | | - </p> |
219 | | - </Banner> |
| 210 | + <div className="text-process flex w-full items-start justify-start gap-1.5 px-4 pt-1 pb-1.5 text-sm"> |
| 211 | + <div className="line-icon h-[0.9lh]"> |
| 212 | + <InfoIcon className="-ml-0.5 size-3.5 shrink-0" /> |
| 213 | + </div> |
| 214 | + <p className="min-w-0 shrink leading-snug"> |
| 215 | + Services with a volume can only have a single replica. |
| 216 | + </p> |
| 217 | + Ò |
220 | 218 | </div> |
221 | 219 | )} |
222 | 220 | </BlockItemContentHighlightable> |
|
0 commit comments