aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src/components/FeedList.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-12-03 03:51:29 +0900
committernsfisis <nsfisis@gmail.com>2025-12-04 23:27:28 +0900
commit58d132139ba8d5fa17c8681a0275047ce4cca809 (patch)
tree7dd18f5de496483b7d318e12e43379a51f3a6056 /frontend/src/components/FeedList.tsx
parentaac4e9ccdebe52c156506d1899d5a38e99366f69 (diff)
downloadfeedaka-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.tsx20
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}