fix: extend file drop zone to fill remaining viewport height

This commit is contained in:
Linus Rath
2026-04-02 11:14:38 +02:00
parent 05eaaad61f
commit 26bfe9cb6c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -395,7 +395,7 @@ export default function FilesPage() {
</div> </div>
)} )}
<div className="flex-1 min-h-0"> <div className="flex-1 min-h-0 flex flex-col">
{!filesEnabled ? ( {!filesEnabled ? (
<div className="flex items-center justify-center h-full"> <div className="flex items-center justify-center h-full">
<div className="max-w-lg text-center space-y-3 px-4"> <div className="max-w-lg text-center space-y-3 px-4">
+1 -1
View File
@@ -837,7 +837,7 @@ export function FileBrowser({
return ( return (
<div <div
ref={containerRef} ref={containerRef}
className="flex flex-col h-full" className="flex flex-col flex-1 min-h-0"
onClick={handleContainerClick} onClick={handleContainerClick}
onDragOver={handleDragOver} onDragOver={handleDragOver}
onDragLeave={handleDragLeave} onDragLeave={handleDragLeave}