Skip to content

Commit 123c61d

Browse files
committed
fix: improve WelcomeView styling and readability
- Reduced excessive padding from p-16 to p-6 - Removed excessive bold text throughout - Made provider cards more compact with smaller icons (32x32px) - Increased introduction text size from text-sm to text-base for better visibility - Centered the main greeting title - Improved visual hierarchy with proper text sizing and spacing - Added subtle borders and improved color contrast
1 parent 7935c94 commit 123c61d

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

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

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@ const WelcomeView = () => {
4949

5050
return (
5151
<Tab>
52-
<TabContent className="flex flex-col gap-5 p-16">
52+
<TabContent className="flex flex-col gap-4 p-6">
5353
<RooHero />
54-
<h2 className="mt-0 mb-0">{t("welcome:greeting")}</h2>
54+
<h2 className="mt-0 mb-4 text-xl text-center">{t("welcome:greeting")}</h2>
5555

56-
<div className="font-bold">
57-
<p>
56+
<div className="text-base text-vscode-foreground py-2 px-2 mb-4">
57+
<p className="mb-3 leading-relaxed">
5858
<Trans i18nKey="welcome:introduction" />
5959
</p>
60-
<p>
60+
<p className="mb-0 leading-relaxed">
6161
<Trans i18nKey="welcome:chooseProvider" />
6262
</p>
6363
</div>
6464

6565
<div className="mb-4">
66-
<p className="font-bold mt-0">{t("welcome:startRouter")}</p>
66+
<p className="text-sm font-medium mt-4 mb-3">{t("welcome:startRouter")}</p>
6767

6868
<div>
6969
{/* Define the providers */}
@@ -94,24 +94,28 @@ const WelcomeView = () => {
9494
<a
9595
key={index}
9696
href={provider.authUrl}
97-
className="flex-1 border border-vscode-panel-border hover:bg-secondary rounded-lg py-4 px-6 mb-2 flex flex-row gap-4 cursor-pointer transition-all no-underline text-inherit"
97+
className="flex-1 border border-vscode-panel-border hover:bg-secondary rounded-md py-3 px-4 mb-2 flex flex-row gap-3 cursor-pointer transition-all no-underline text-inherit"
9898
target="_blank"
9999
rel="noopener noreferrer">
100-
<div className="w-10 h-10">
100+
<div className="w-8 h-8 flex-shrink-0">
101101
<img
102102
src={`${imagesBaseUri}/${provider.slug}.png`}
103103
alt={provider.name}
104104
className="w-full h-full object-contain"
105105
/>
106106
</div>
107107
<div>
108-
<div className="font-bold text-vscode-foreground">{provider.name}</div>
108+
<div className="text-sm font-medium text-vscode-foreground">
109+
{provider.name}
110+
</div>
109111
<div>
110112
<div className="text-xs text-vscode-descriptionForeground">
111113
{provider.description}
112114
</div>
113115
{provider.incentive && (
114-
<div className="text-xs font-bold">{provider.incentive}</div>
116+
<div className="text-xs text-vscode-warningForeground mt-1">
117+
{provider.incentive}
118+
</div>
115119
)}
116120
</div>
117121
</div>
@@ -120,7 +124,7 @@ const WelcomeView = () => {
120124
})()}
121125
</div>
122126

123-
<p className="font-bold mt-8 mb-6">{t("welcome:startCustom")}</p>
127+
<p className="text-sm font-medium mt-6 mb-3">{t("welcome:startCustom")}</p>
124128
<ApiOptions
125129
fromWelcomeView
126130
apiConfiguration={apiConfiguration || {}}
@@ -131,8 +135,8 @@ const WelcomeView = () => {
131135
/>
132136
</div>
133137
</TabContent>
134-
<div className="sticky bottom-0 bg-vscode-sideBar-background p-5">
135-
<div className="flex flex-col gap-1">
138+
<div className="sticky bottom-0 bg-vscode-sideBar-background p-4 border-t border-vscode-panel-border">
139+
<div className="flex flex-col gap-2">
136140
<div className="flex justify-end">
137141
<VSCodeLink
138142
href="#"

0 commit comments

Comments
 (0)