Skip to content

Commit dab5cc1

Browse files
committed
Fix styling of chat intro
1 parent 5ec376e commit dab5cc1

2 files changed

Lines changed: 8 additions & 16 deletions

File tree

webview-ui/src/components/welcome/RooHero.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const RooHero = () => {
77
})
88

99
return (
10-
<div className="mb-4 relative forced-color-adjust-none group flex flex-col items-center w-30 pt-4 overflow-clip">
10+
<div className="mb-4 relative forced-color-adjust-none group flex flex-col items-center w-full pt-4">
1111
<div
1212
style={{
1313
backgroundColor: "var(--vscode-foreground)",
@@ -18,17 +18,9 @@ const RooHero = () => {
1818
maskRepeat: "no-repeat",
1919
maskSize: "contain",
2020
}}
21-
className="z-5 mr-auto group-hover:animate-bounce translate-y-0 transition-transform duration-500">
22-
<img src={imagesBaseUri + "/datacoves-logo.svg"} alt="Datacoves logo" className="h-8 opacity-0" />
21+
className="z-5 mx-auto group-hover:animate-bounce translate-y-0 transition-transform duration-500">
22+
<img src={imagesBaseUri + "/datacoves-logo.svg"} alt="Datacoves logo" className="h-12 opacity-0" />
2323
</div>
24-
<div
25-
className="w-[200%] -mt-0.25 h-0.5 overflow-hidden opacity-0 group-hover:opacity-70 transition-opacity duration-300"
26-
data-testid="roo-hero-ground">
27-
<div className="w-full border-b-1 group-hover:border-b-1 border-dashed border-vscode-foreground animate-ground-slide" />
28-
</div>
29-
<div className="z-4 bg-gradient-to-r from-transparent to-vscode-sideBar-background absolute top-0 right-0 bottom-0 w-10 opacity-100" />
30-
<div className="z-3 bg-gradient-to-l from-transparent to-vscode-sideBar-background absolute top-0 left-0 bottom-0 w-10 opacity-100" />
31-
<div className="bg-vscode-foreground/10 rounded-full size-10 z-1 absolute -bottom-4 animate-sun opacity-0 group-hover:opacity-100 transition-opacity duration-300 blur-[2px]" />
3224
</div>
3325
)
3426
}

webview-ui/src/components/welcome/RooTips.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const RooTips = () => {
2121
const { t } = useTranslation("chat")
2222

2323
return (
24-
<div className="flex flex-col gap-2 mb-4 max-w-[500px] text-vscode-descriptionForeground">
25-
<p className="my-0 pr-2">
24+
<div className="flex flex-col items-center gap-4 mb-4 w-full text-vscode-descriptionForeground">
25+
<p className="my-0 text-center text-base">
2626
<Trans
2727
i18nKey="chat:about"
2828
components={{
@@ -35,10 +35,10 @@ const RooTips = () => {
3535
}}
3636
/>
3737
</p>
38-
<div className="gap-4">
38+
<div className="flex flex-col gap-3 mt-2">
3939
{tips.map((tip) => (
40-
<div key={tip.titleKey} className="flex items-start gap-2 mt-2 mr-6 leading-relaxed">
41-
{tip.icon}
40+
<div key={tip.titleKey} className="flex items-start gap-3 leading-relaxed text-base">
41+
<span className="mt-0.5">{tip.icon}</span>
4242
<span>
4343
<strong>{t(tip.titleKey)}</strong>: {t(tip.descriptionKey)}
4444
</span>

0 commit comments

Comments
 (0)