style: format stats library tab

This commit is contained in:
2026-03-22 19:40:28 -07:00
parent ef716b82c7
commit 809b57af44

View File

@@ -34,12 +34,7 @@ export function LibraryTab({ onNavigateToSession }: LibraryTabProps) {
const totalMs = media.reduce((sum, m) => sum + m.totalActiveMs, 0); const totalMs = media.reduce((sum, m) => sum + m.totalActiveMs, 0);
if (selectedVideoId !== null) { if (selectedVideoId !== null) {
return ( return <MediaDetailView videoId={selectedVideoId} onBack={() => setSelectedVideoId(null)} />;
<MediaDetailView
videoId={selectedVideoId}
onBack={() => setSelectedVideoId(null)}
/>
);
} }
if (loading) return <div className="text-ctp-overlay2 p-4">Loading...</div>; if (loading) return <div className="text-ctp-overlay2 p-4">Loading...</div>;
@@ -89,7 +84,9 @@ export function LibraryTab({ onNavigateToSession }: LibraryTabProps) {
{group.title} {group.title}
</a> </a>
) : ( ) : (
<h3 className="text-base font-semibold text-ctp-text truncate">{group.title}</h3> <h3 className="text-base font-semibold text-ctp-text truncate">
{group.title}
</h3>
)} )}
</div> </div>
{group.subtitle ? ( {group.subtitle ? (