1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 17:02:47 +00:00

feat: filename support open a file (#6304)

* feat: filename support open a file

* feat: add currentRepoInfo

* feat: op code

---------

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-07-05 17:41:34 +08:00
committed by GitHub
parent 024290a12c
commit ae5b90e6b2
13 changed files with 302 additions and 80 deletions

View File

@@ -16,6 +16,7 @@ const propTypes = {
lastModified: PropTypes.string,
latestContributor: PropTypes.string,
onLinkClick: PropTypes.func.isRequired,
currentRepoInfo: PropTypes.object,
};
class DirColumnFile extends React.Component {
@@ -60,7 +61,7 @@ class DirColumnFile extends React.Component {
return (
<div className="w-100 h-100 o-hidden d-flex" style={{ paddingRight: 10, flexDirection: 'column', alignItems: 'center' }}>
<div className="" style={{ width: '100%', height: 10, zIndex: 7, transform: 'translateZ(1000px)', position: 'relative', background: '#fff' }}></div>
<SeafileMetadata repoID={this.props.repoID} />
<SeafileMetadata repoID={this.props.repoID} currentRepoInfo={this.props.currentRepoInfo} />
</div>
);
}