Skip to content

Commit c164053

Browse files
committed
Visual tweaks
1 parent 7dd9416 commit c164053

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

webview-ui/src/components/chat/CloudTaskButton.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,18 @@ export const CloudTaskButton = ({ item, disabled = false }: CloudTaskButtonProps
6868
</StandardTooltip>
6969

7070
<Dialog open={dialogOpen} onOpenChange={setDialogOpen}>
71-
<DialogContent className="max-w-md">
71+
<DialogContent className="max-w-100">
7272
<DialogHeader>
73-
<DialogTitle>{t("chat:task.continueFromAnywhere")}</DialogTitle>
73+
<DialogTitle>{t("chat:task.openInCloud")}</DialogTitle>
7474
</DialogHeader>
7575

76-
<div className="flex flex-col space-y-4">
77-
{/* URL Input with Copy Button */}
76+
<div className="flex flex-col space-y-4 text-center">
77+
<div className="flex justify-center">
78+
<div className="p-[10px] w-[170px] h-[170px] bg-white rounded-lg">
79+
<canvas ref={qrCodeRef} />
80+
</div>
81+
</div>
82+
7883
<div className="flex items-center space-x-2">
7984
<Input value={cloudTaskUrl} disabled className="flex-1 font-mono text-sm" readOnly />
8085
<Button
@@ -85,13 +90,6 @@ export const CloudTaskButton = ({ item, disabled = false }: CloudTaskButtonProps
8590
{showCopyFeedback ? <Check className="h-4 w-4" /> : <Copy className="h-4 w-4" />}
8691
</Button>
8792
</div>
88-
89-
{/* QR Code */}
90-
<div className="flex justify-center">
91-
<div className="p-[10px] w-[170px] h-[170px] bg-white rounded-lg">
92-
<canvas ref={qrCodeRef} />
93-
</div>
94-
</div>
9593
</div>
9694
</DialogContent>
9795
</Dialog>

webview-ui/src/components/chat/ShareButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState, useEffect, useRef } from "react"
22
import { useTranslation } from "react-i18next"
3-
import { SquareArrowOutUpRightIcon } from "lucide-react"
3+
import { Share2 } from "lucide-react"
44

55
import { type HistoryItem, type ShareVisibility, TelemetryEventName } from "@roo-code/types"
66

@@ -165,7 +165,7 @@ export const ShareButton = ({ item, disabled = false, showLabel = false }: Share
165165
}
166166
onClick={handleShareButtonClick}
167167
data-testid="share-button">
168-
<SquareArrowOutUpRightIcon />
168+
<Share2 />
169169
{showLabel && <span className="ml-0">{t("chat:task.share")}</span>}
170170
</Button>
171171
</PopoverTrigger>
@@ -234,7 +234,7 @@ export const ShareButton = ({ item, disabled = false, showLabel = false }: Share
234234
}
235235
onClick={handleShareButtonClick}
236236
data-testid="share-button">
237-
<SquareArrowOutUpRightIcon />
237+
<Share2 />
238238
{showLabel && <span className="ml-1">{t("chat:task.share")}</span>}
239239
</Button>
240240
</StandardTooltip>

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

Lines changed: 2 additions & 2 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

12-
import { History, PiggyBank, SquareArrowOutUpRightIcon } from "lucide-react"
12+
import { History, PiggyBank, Share2 } from "lucide-react"
1313

1414
type CloudViewProps = {
1515
userInfo: CloudUserInfo | null
@@ -165,7 +165,7 @@ export const CloudView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }: Cl
165165
</h2>
166166
<ul className="text-vscode-descriptionForeground space-y-3 mx-auto px-8">
167167
<li className="flex items-start text-left gap-4">
168-
<SquareArrowOutUpRightIcon size="16" className="shrink-0" />
168+
<Share2 size="16" className="shrink-0" />
169169
{t("cloud:cloudBenefitSharing")}
170170
</li>
171171
<li className="flex items-start text-left gap-4">

0 commit comments

Comments
 (0)