mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
Add dynamic path display to file browser with truncation support
This commit is contained in:
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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user