diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-12-03 03:51:29 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-04 23:27:28 +0900 |
| commit | 58d132139ba8d5fa17c8681a0275047ce4cca809 (patch) | |
| tree | 7dd18f5de496483b7d318e12e43379a51f3a6056 /frontend/src/components/FeedList.tsx | |
| parent | aac4e9ccdebe52c156506d1899d5a38e99366f69 (diff) | |
| download | feedaka-58d132139ba8d5fa17c8681a0275047ce4cca809.tar.gz feedaka-58d132139ba8d5fa17c8681a0275047ce4cca809.tar.zst feedaka-58d132139ba8d5fa17c8681a0275047ce4cca809.zip | |
feat(frontend): design update
Diffstat (limited to 'frontend/src/components/FeedList.tsx')
| -rw-r--r-- | frontend/src/components/FeedList.tsx | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/frontend/src/components/FeedList.tsx b/frontend/src/components/FeedList.tsx index 6081293..24bcfc7 100644 --- a/frontend/src/components/FeedList.tsx +++ b/frontend/src/components/FeedList.tsx @@ -15,17 +15,29 @@ export function FeedList({ onFeedUnsubscribed }: Props) { }); if (fetching) { - return <div className="p-4">Loading feeds...</div>; + return ( + <div className="py-8 text-center"> + <p className="text-sm text-stone-400">Loading feeds...</p> + </div> + ); } if (error) { - return <div className="p-4 text-red-600">Error: {error.message}</div>; + return ( + <div className="rounded-lg bg-red-50 p-4 text-sm text-red-600"> + Error: {error.message} + </div> + ); } if (!data?.feeds || data.feeds.length === 0) { - return <div className="p-4 text-gray-500">No feeds added yet.</div>; + return ( + <div className="py-8 text-center"> + <p className="text-sm text-stone-400">No feeds added yet.</p> + </div> + ); } return ( - <div className="space-y-4 p-4"> + <div className="space-y-3"> {data.feeds.map((feed) => ( <FeedItem key={feed.id} |
