fix: apply sidebar class for fixed width and document-editor flex layout for scrolling
This commit is contained in:
parent
66514df896
commit
0da48660f4
@ -96,7 +96,7 @@ export default function DocumentEditor({ documentKey, onDirtyChange, onDeleted }
|
||||
}
|
||||
|
||||
return (
|
||||
<div data-testid="document-editor">
|
||||
<div className="document-editor" data-testid="document-editor">
|
||||
<div className="doc-header">
|
||||
<div className="doc-path">
|
||||
<span className="current">{documentKey}</span>
|
||||
|
||||
@ -26,7 +26,7 @@ export default function FileExplorer({ onSelectFile, selectedKey, refreshKey }:
|
||||
}
|
||||
|
||||
return (
|
||||
<div data-testid="file-explorer">
|
||||
<div className="sidebar" data-testid="file-explorer">
|
||||
{folders.map((folder) => (
|
||||
<FolderNode key={folder} name={folder} path={folder} onSelectFile={onSelectFile} selectedKey={selectedKey} />
|
||||
))}
|
||||
|
||||
@ -322,6 +322,14 @@ body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.document-editor {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user