Skip to content

Commit 55ea328

Browse files
authored
Fix: Improve WelcomeView styling and readability (#7682)
* 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 * fix: remove undefined color class from incentive text Removed the text-vscode-warningForeground class as it wasn't defined in index.css. The incentive text now uses default color which looks good.
1 parent 90e7d09 commit 55ea328

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

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

Lines changed: 15 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,26 @@ 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 mt-1">{provider.incentive}</div>
115117
)}
116118
</div>
117119
</div>
@@ -120,7 +122,7 @@ const WelcomeView = () => {
120122
})()}
121123
</div>
122124

123-
<p className="font-bold mt-8 mb-6">{t("welcome:startCustom")}</p>
125+
<p className="text-sm font-medium mt-6 mb-3">{t("welcome:startCustom")}</p>
124126
<ApiOptions
125127
fromWelcomeView
126128
apiConfiguration={apiConfiguration || {}}
@@ -131,8 +133,8 @@ const WelcomeView = () => {
131133
/>
132134
</div>
133135
</TabContent>
134-
<div className="sticky bottom-0 bg-vscode-sideBar-background p-5">
135-
<div className="flex flex-col gap-1">
136+
<div className="sticky bottom-0 bg-vscode-sideBar-background p-4 border-t border-vscode-panel-border">
137+
<div className="flex flex-col gap-2">
136138
<div className="flex justify-end">
137139
<VSCodeLink
138140
href="#"

0 commit comments

Comments
 (0)