Add dynamic path display to file browser with truncation support

This commit is contained in:
Chris Scott committed 2025-11-27 08:28:30 -05:00
1 parent 0293bdbfa8
commit 16767a2a77
7 files changed
+76 -28

No files matched your search

@@ -15,14 +15,6 @@ export function MobileFilePreviewModal({
file,
showFilePreviewHeader = false,
}: MobileFilePreviewModalProps) {
const handleTouchStart = (e: React.TouchEvent) => {
e.preventDefault();
};
const handleTouchEnd = (e: React.TouchEvent) => {
e.preventDefault();
};
if (!file || file.isDirectory) {
return null;
}
@@ -31,8 +23,6 @@ export function MobileFilePreviewModal({
<Dialog open={isOpen} onOpenChange={(open) => !open && onClose()}>
<DialogContent
className="w-screen h-screen max-w-none max-h-none p-0 bg-background border-0 flex flex-col"
onTouchStart={handleTouchStart}
onTouchEnd={handleTouchEnd}
hideCloseButton
>
<div
@@ -49,4 +39,3 @@ export function MobileFilePreviewModal({
</Dialog>
);
}