1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-16 16:21:48 +00:00

change trash dialog style (#6383)

This commit is contained in:
Michael An 2024-07-19 14:37:22 +08:00 committed by GitHub
parent 5f31f1a969
commit 88a6f73621
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View File

@ -195,8 +195,8 @@ class Content extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.theadData = [ this.theadData = [
{ width: '5%', text: '' }, { width: '5%', text: gettext('Name') },
{ width: '20%', text: gettext('Name') }, { width: '20%', text: '' },
{ width: '40%', text: gettext('Original path') }, { width: '40%', text: gettext('Original path') },
{ width: '12%', text: gettext('Delete Time') }, { width: '12%', text: gettext('Delete Time') },
{ width: '13%', text: gettext('Size') }, { width: '13%', text: gettext('Size') },
@ -214,16 +214,14 @@ class Content extends React.Component {
render() { render() {
const { items, showFolder, commitID, baseDir, folderPath, folderItems } = this.props.data; const { items, showFolder, commitID, baseDir, folderPath, folderItems } = this.props.data;
const { const { curPerPage, currentPage, hasNextPage } = this.props;
curPerPage, currentPage, hasNextPage
} = this.props;
return ( return (
<React.Fragment> <React.Fragment>
<table className="table-hover"> <table className="table-hover">
<thead> <thead>
<tr> <tr>
{this.theadData.map((item, index) => { {this.theadData.map((item, index) => {
return <th key={index} width={item.width}>{item.text}</th>; return <th key={index} className={index === 0 ? 'pl-4' : ''} width={item.width}>{item.text}</th>;
})} })}
</tr> </tr>
</thead> </thead>

View File

@ -321,6 +321,7 @@ class DirColumnNav extends React.Component {
<DirOthers <DirOthers
repoID={repoID} repoID={repoID}
userPerm={userPerm} userPerm={userPerm}
currentRepoInfo={currentRepoInfo}
/> />
</> </>
)} )}