feat: simplify mobile header and improve context usage display

This commit is contained in:
Bohdan Triapitsyn
2025-12-15 14:07:18 +02:00
parent 6b78ad0b49
commit 3b9b65a398
3 changed files with 128 additions and 111 deletions
@@ -64,14 +64,14 @@ const FileSelector = React.memo<FileSelectorProps>(({
onSelectFile,
isMobile,
}) => {
if (changedFiles.length === 0) return null;
const getLabel = React.useCallback((path: string) => {
if (!isMobile) return path;
const lastSlash = path.lastIndexOf('/');
return lastSlash >= 0 ? path.slice(lastSlash + 1) : path;
}, [isMobile]);
if (changedFiles.length === 0) return null;
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>