update bottom padding on banners, status bars, and player controls to use env(safe-area-inset-bottom) for better support on devices with display cutouts or home indicators. also add viewportFit: cover to layout for full-viewport rendering on mobile browsers.
34 lines
922 B
TypeScript
34 lines
922 B
TypeScript
'use client';
|
|
|
|
import { formatDocumentSize } from '@/components/doclist/formatSize';
|
|
|
|
interface FinderStatusBarProps {
|
|
itemCount: number;
|
|
selectedCount: number;
|
|
totalSize: number;
|
|
summary?: string;
|
|
}
|
|
|
|
export function FinderStatusBar({
|
|
itemCount,
|
|
selectedCount,
|
|
totalSize,
|
|
summary,
|
|
}: FinderStatusBarProps) {
|
|
return (
|
|
<div
|
|
role="status"
|
|
aria-live="polite"
|
|
className="min-h-6 px-3 pb-[env(safe-area-inset-bottom)] flex items-center justify-between gap-3 text-[11px] text-muted bg-base border-t border-offbase select-none"
|
|
>
|
|
<span className="truncate">{summary}</span>
|
|
<span className="shrink-0">
|
|
{selectedCount > 0
|
|
? `${selectedCount} of ${itemCount} selected`
|
|
: `${itemCount} item${itemCount === 1 ? '' : 's'}`}
|
|
<span className="mx-1.5 text-muted">•</span>
|
|
{formatDocumentSize(totalSize)}
|
|
</span>
|
|
</div>
|
|
);
|
|
}
|