Fix external editor actions in file preview (#1042)

This commit is contained in:
ZacharyZcR
2026-07-13 23:00:09 +08:00
committed by GitHub
parent 553cba5a78
commit d33c90dd06
@@ -407,7 +407,7 @@ export function FileViewer({
return ( return (
<div className="h-full flex flex-col bg-background"> <div className="h-full flex flex-col bg-background">
<div className="flex-shrink-0 bg-card border-b border-border p-4"> <div className="flex-shrink-0 bg-card border-b border-border p-4">
<div className="flex items-center justify-between"> <div className="flex flex-wrap items-center justify-between gap-3">
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
<div className={cn("p-2 rounded-lg bg-muted", fileTypeInfo.color)}> <div className={cn("p-2 rounded-lg bg-muted", fileTypeInfo.color)}>
{fileTypeInfo.icon} {fileTypeInfo.icon}
@@ -434,7 +434,7 @@ export function FileViewer({
</div> </div>
</div> </div>
<div className="flex items-center gap-2"> <div className="ml-auto flex min-w-0 max-w-full flex-wrap items-center justify-end gap-2">
{isEditable && ( {isEditable && (
<Button <Button
variant="ghost" variant="ghost"