1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:48:51 +00:00

feat: detail resize width (#6507)

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-08-07 14:01:01 +08:00
committed by GitHub
parent c305f93a3f
commit 4dc0df7093
21 changed files with 199 additions and 103 deletions

View File

@@ -250,7 +250,11 @@ class LibContentContainer extends React.Component {
switchViewMode={this.props.switchViewMode}
/>
</div>
<div className={`cur-view-content lib-content-container ${this.props.isTreePanelShown ? 'view-mode-container' : ''}`} onScroll={this.onItemsScroll}>
<div
className={`cur-view-content lib-content-container ${this.props.isTreePanelShown ? 'view-mode-container' : ''}`}
onScroll={this.onItemsScroll}
>
{!this.props.pathExist && this.errMessage}
{this.props.pathExist && (
<DirColumnView
@@ -318,18 +322,16 @@ class LibContentContainer extends React.Component {
/>
)}
{this.props.isDirentDetailShow && (
<div className="cur-view-detail">
<Detail
path={path}
repoID={repoID}
currentRepoInfo={this.props.currentRepoInfo}
dirent={this.state.currentDirent}
repoTags={this.props.repoTags}
fileTags={this.props.isViewFile ? this.props.fileTags : []}
onFileTagChanged={this.props.onFileTagChanged}
onClose={this.props.closeDirentDetail}
/>
</div>
<Detail
path={path}
repoID={repoID}
currentRepoInfo={this.props.currentRepoInfo}
dirent={this.state.currentDirent}
repoTags={this.props.repoTags}
fileTags={this.props.isViewFile ? this.props.fileTags : []}
onFileTagChanged={this.props.onFileTagChanged}
onClose={this.props.closeDirentDetail}
/>
)}
</div>
</div>