Skip to content

Commit 67124c9

Browse files
committed
Cloud view fixes in a left-aligned layout
1 parent 010a812 commit 67124c9

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

webview-ui/src/components/cloud/CloudUpsellDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const CloudUpsellDialog = ({ open, onOpenChange, onConnect }: CloudUpsell
5656
{renderCloudBenefitsContent(t)}
5757

5858
<div className="flex flex-col gap-4">
59-
<Button onClick={onConnect} className="w-7/8">
59+
<Button onClick={onConnect} className="w-full">
6060
{t("cloud:connect")}
6161
</Button>
6262
</div>

webview-ui/src/components/cloud/CloudView.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { vscode } from "@src/utils/vscode"
99
import { telemetryClient } from "@src/utils/TelemetryClient"
1010
import { ToggleSwitch } from "@/components/ui/toggle-switch"
1111
import { renderCloudBenefitsContent } from "./CloudUpsellDialog"
12-
12+
import { TriangleAlert } from "lucide-react"
1313
import { cn } from "@/lib/utils"
1414

1515
// Define the production URL constant locally to avoid importing from cloud package in tests
@@ -217,12 +217,10 @@ export const CloudView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }: Cl
217217
) : (
218218
<>
219219
<div className="flex flex-col items-start gap-4 px-8">
220-
<div className={cn("mb-4", authInProgress && "opacity-50")}>
221-
{renderCloudBenefitsContent(t)}
222-
</div>
220+
<div className={cn(authInProgress && "opacity-50")}>{renderCloudBenefitsContent(t)}</div>
223221

224222
{!authInProgress && (
225-
<VSCodeButton appearance="primary" onClick={handleConnectClick} className="w-7/8">
223+
<VSCodeButton appearance="primary" onClick={handleConnectClick} className="w-full">
226224
{t("cloud:connect")}
227225
</VSCodeButton>
228226
)}
@@ -273,8 +271,9 @@ export const CloudView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }: Cl
273271
</>
274272
)}
275273
{cloudApiUrl && cloudApiUrl !== PRODUCTION_ROO_CODE_API_URL && (
276-
<div className="mt-6 flex justify-center">
277-
<div className="inline-flex items-center px-3 py-1 gap-1 rounded-full bg-vscode-badge-background/50 text-vscode-badge-foreground text-xs">
274+
<div className="ml-8 mt-6 flex justify-start">
275+
<div className="inline-flex items-center gap-2 text-xs">
276+
<TriangleAlert className="size-4 text-vscode-descriptionForeground" />
278277
<span className="text-vscode-foreground/75">{t("cloud:cloudUrlPillLabel")}: </span>
279278
<button
280279
onClick={handleOpenCloudUrl}

0 commit comments

Comments
 (0)