Skip to content

Commit ffb6e06

Browse files
committed
refactor(ui): standardize page layout across all routes
Applied consistent centered layout (max-w-6xl mx-auto) from cliproxy page to all pages except home page. Updated spacing to space-y-8 for uniformity.
1 parent 17caf80 commit ffb6e06

File tree

7 files changed

+25
-7
lines changed

7 files changed

+25
-7
lines changed

docs/project-roadmap.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,24 @@ src/types/
584584
- **User Experience**: One-command channel switching without data loss
585585
- **Backward Compatibility**: Zero breaking changes, existing workflows preserved
586586

587+
### Version 4.5.1 - UI Layout Improvements
588+
**Release Date**: 2025-12-08
589+
590+
#### UI Fixes & Improvements
591+
-**CLIProxy Card Padding**: Removed excessive padding from CLIProxy cards for better visual integration.
592+
-**CLIProxy Dashboard Layout**: Improved overall layout and styling of the CLIProxy dashboard for enhanced user experience.
593+
-**Dropdown Styling**: Refined dropdown component styling for consistency and readability.
594+
595+
#### Technical Improvements
596+
- **Improved UI Responsiveness**: Adjustments ensure better display across various screen sizes.
597+
- **Enhanced User Experience**: Minor visual tweaks lead to a more polished and intuitive interface.
598+
599+
#### Validation Results
600+
- **UI Rendering**: ✅ All UI components render correctly after layout adjustments.
601+
- **Functional Impact**: ✅ No regressions introduced, core functionality remains stable.
602+
603+
---
604+
587605
#### Testing Infrastructure
588606
- **Version Comparison Tests**: 25 unit tests for all semantic version scenarios
589607
- **Flag Parsing Tests**: 4 integration tests for update command flags
@@ -794,6 +812,6 @@ src/types/
794812
---
795813

796814
**Document Status**: Living document, updated with each major release
797-
**Last Updated**: 2025-12-07 (React Dashboard Integration Complete)
815+
**Last Updated**: 2025-12-08 (UI Layout Improvements)
798816
**Next Update**: v4.6.0 UI Enhancements Planning
799817
**Maintainer**: CCS Development Team

ui/src/pages/accounts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function AccountsPage() {
1010
const { data, isLoading } = useAccounts();
1111

1212
return (
13-
<div className="p-6 space-y-4">
13+
<div className="p-6 max-w-6xl mx-auto space-y-8">
1414
<div className="flex items-center justify-between">
1515
<div>
1616
<h1 className="text-2xl font-bold">Accounts</h1>

ui/src/pages/api.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function ApiPage() {
3535
};
3636

3737
return (
38-
<div className="p-6 space-y-4">
38+
<div className="p-6 max-w-6xl mx-auto space-y-8">
3939
<div className="flex items-center justify-between">
4040
<div>
4141
<h1 className="text-2xl font-bold">API Profiles</h1>

ui/src/pages/cliproxy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function AccountBadge({
4747
}`}
4848
>
4949
<User className="w-3 h-3" />
50-
<span className="max-w-[120px] truncate">{account.email || account.id}</span>
50+
<span className="max-w-[200px] truncate">{account.email || account.id}</span>
5151
{account.isDefault && <Star className="w-3 h-3 fill-current" />}
5252
<ChevronDown className="w-3 h-3 opacity-50" />
5353
</button>

ui/src/pages/health.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function HealthPage() {
1111
};
1212

1313
return (
14-
<div className="p-6 space-y-6">
14+
<div className="p-6 max-w-6xl mx-auto space-y-8">
1515
<div className="flex items-center justify-between">
1616
<div>
1717
<h1 className="text-2xl font-bold">Health Dashboard</h1>

ui/src/pages/settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Construction, ArrowRight } from 'lucide-react';
1010

1111
export function SettingsPage() {
1212
return (
13-
<div className="p-6 space-y-6">
13+
<div className="p-6 max-w-6xl mx-auto space-y-8">
1414
<h1 className="text-2xl font-bold">Settings</h1>
1515

1616
<Card className="border-yellow-500/50 bg-yellow-500/5">

ui/src/pages/shared.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function SharedPage() {
1919
];
2020

2121
return (
22-
<div className="p-6 space-y-6">
22+
<div className="p-6 max-w-6xl mx-auto space-y-8">
2323
<div>
2424
<h1 className="text-2xl font-bold">Shared Data</h1>
2525
<p className="text-muted-foreground">

0 commit comments

Comments
 (0)