Skip to content

Commit b63e254

Browse files
author
catlog22
committed
fix(frontend): fix button icon and text layout in help page
- Add inline-flex items-center to all button links for proper icon alignment - Add flex-shrink-0 to all icons to prevent shrinking - Change support buttons container to flex-wrap for better responsiveness - Ensure icons and text stay on same line in all buttons
1 parent 86b1a15 commit b63e254

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

ccw/frontend/src/pages/HelpPage.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ export function HelpPage() {
104104
<Button
105105
variant="default"
106106
size="sm"
107-
className="gap-2 flex-shrink-0"
107+
className="flex-shrink-0"
108108
asChild
109109
>
110-
<a href="/docs" target="_blank" rel="noopener noreferrer" className="whitespace-nowrap">
111-
<FileText className="w-4 h-4" />
110+
<a href="/docs" target="_blank" rel="noopener noreferrer" className="inline-flex items-center gap-2 whitespace-nowrap">
111+
<FileText className="w-4 h-4 flex-shrink-0" />
112112
{formatMessage({ id: 'help.fullDocs' })}
113-
<ExternalLink className="w-3 h-3" />
113+
<ExternalLink className="w-3 h-3 flex-shrink-0" />
114114
</a>
115115
</Button>
116116
</div>
@@ -207,9 +207,9 @@ export function HelpPage() {
207207
</div>
208208
</div>
209209
<Button variant="ghost" size="sm" className="w-full mt-auto" asChild>
210-
<a href="/docs/commands" className="whitespace-nowrap">
210+
<a href="/docs/commands" className="inline-flex items-center justify-center whitespace-nowrap">
211211
{formatMessage({ id: 'help.viewAll' })}
212-
<ArrowRight className="w-4 h-4 ml-1" />
212+
<ArrowRight className="w-4 h-4 ml-1 flex-shrink-0" />
213213
</a>
214214
</Button>
215215
</Card>
@@ -242,9 +242,9 @@ export function HelpPage() {
242242
</div>
243243
</div>
244244
<Button variant="ghost" size="sm" className="w-full mt-auto" asChild>
245-
<a href="/docs/workflows" className="whitespace-nowrap">
245+
<a href="/docs/workflows" className="inline-flex items-center justify-center whitespace-nowrap">
246246
{formatMessage({ id: 'help.viewAll' })}
247-
<ArrowRight className="w-4 h-4 ml-1" />
247+
<ArrowRight className="w-4 h-4 ml-1 flex-shrink-0" />
248248
</a>
249249
</Button>
250250
</Card>
@@ -277,9 +277,9 @@ export function HelpPage() {
277277
</div>
278278
</div>
279279
<Button variant="ghost" size="sm" className="w-full mt-auto" asChild>
280-
<a href="/docs/overview" className="whitespace-nowrap">
280+
<a href="/docs/overview" className="inline-flex items-center justify-center whitespace-nowrap">
281281
{formatMessage({ id: 'help.getStarted' })}
282-
<ArrowRight className="w-4 h-4 ml-1" />
282+
<ArrowRight className="w-4 h-4 ml-1 flex-shrink-0" />
283283
</a>
284284
</Button>
285285
</Card>
@@ -301,10 +301,10 @@ export function HelpPage() {
301301
</p>
302302
</div>
303303
</div>
304-
<Button variant="default" size="sm" className="gap-2 flex-shrink-0 w-full sm:w-auto" asChild>
305-
<a href="/docs" className="whitespace-nowrap">
304+
<Button variant="default" size="sm" className="flex-shrink-0 w-full sm:w-auto" asChild>
305+
<a href="/docs" className="inline-flex items-center justify-center gap-2 whitespace-nowrap">
306306
{formatMessage({ id: 'help.searchDocs.button' })}
307-
<ArrowRight className="w-4 h-4" />
307+
<ArrowRight className="w-4 h-4 flex-shrink-0" />
308308
</a>
309309
</Button>
310310
</div>
@@ -323,16 +323,16 @@ export function HelpPage() {
323323
<p className="text-muted-foreground text-sm mt-2">
324324
{formatMessage({ id: 'help.support.description' })}
325325
</p>
326-
<div className="flex flex-col sm:flex-row gap-3 mt-4">
326+
<div className="flex flex-wrap gap-3 mt-4">
327327
<Button variant="outline" size="sm" asChild>
328-
<a href="/docs/faq" className="whitespace-nowrap">
329-
<Book className="w-4 h-4 mr-2" />
328+
<a href="/docs/faq" className="inline-flex items-center whitespace-nowrap">
329+
<Book className="w-4 h-4 mr-2 flex-shrink-0" />
330330
{formatMessage({ id: 'help.support.documentation' })}
331331
</a>
332332
</Button>
333333
<Button variant="outline" size="sm" asChild>
334-
<a href="https://github.com/catlog22/Claude-Code-Workflow/issues" target="_blank" rel="noopener noreferrer" className="whitespace-nowrap">
335-
<Video className="w-4 h-4 mr-2" />
334+
<a href="https://github.com/catlog22/Claude-Code-Workflow/issues" target="_blank" rel="noopener noreferrer" className="inline-flex items-center whitespace-nowrap">
335+
<Video className="w-4 h-4 mr-2 flex-shrink-0" />
336336
{formatMessage({ id: 'help.support.tutorials' })}
337337
</a>
338338
</Button>

0 commit comments

Comments
 (0)