mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 23:48:47 +00:00
repair bug
This commit is contained in:
@@ -75,14 +75,13 @@ class SharedRepoListItem extends React.Component {
|
|||||||
|
|
||||||
getRepoComputeParams = () => {
|
getRepoComputeParams = () => {
|
||||||
let repo = this.props.repo;
|
let repo = this.props.repo;
|
||||||
let currentGroup = this.props.currentGroup; //todo--change to libray
|
let isReadOnly = false;
|
||||||
let isReadyOnly = false;
|
if (repo.permission === 'r' || repo.permission === 'preview') {
|
||||||
if ( repo.permission === 'r' || repo.permission === 'preview') {
|
isReadOnly = true;
|
||||||
isReadyOnly = true;
|
|
||||||
}
|
}
|
||||||
let iconUrl = Utils.getLibIconUrl({
|
let iconUrl = Utils.getLibIconUrl({
|
||||||
is_encryted: repo.encrypted,
|
is_encryted: repo.encrypted,
|
||||||
is_readyonly: isReadyOnly,
|
is_readonly: isReadOnly,
|
||||||
size: Utils.isHiDPI() ? 48 : 24
|
size: Utils.isHiDPI() ? 48 : 24
|
||||||
});
|
});
|
||||||
let iconTitle = Utils.getLibIconTitle({
|
let iconTitle = Utils.getLibIconTitle({
|
||||||
|
@@ -25,3 +25,8 @@
|
|||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
margin: 3px 0 0 10px;
|
margin: 3px 0 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.department-group-icon {
|
||||||
|
margin-left: 0.25rem;
|
||||||
|
color:#888;
|
||||||
|
}
|
||||||
|
@@ -207,7 +207,7 @@ class GroupView extends React.Component {
|
|||||||
<span className="path-split">/</span>
|
<span className="path-split">/</span>
|
||||||
<span>{currentGroup.name}</span>
|
<span>{currentGroup.name}</span>
|
||||||
{currentGroup.parent_group_id !== 0 && (
|
{currentGroup.parent_group_id !== 0 && (
|
||||||
<span className="address-book-group-icon icon-building" title={gettext("This is a special group representing a department.")}></span>
|
<span className="department-group-icon fas fa-building" title={gettext("This is a special group representing a department.")}></span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="path-tool">
|
<div className="path-tool">
|
||||||
|
@@ -26,8 +26,8 @@ class Content extends Component {
|
|||||||
const desktopThead = (
|
const desktopThead = (
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="8%"><span className="sr-only">{gettext("Library Type")}</span></th>
|
<th width="4%"><span className="sr-only">{gettext("Library Type")}</span></th>
|
||||||
<th width="34%">{gettext("Name")}<a className="table-sort-op by-name" href="#">{/*TODO: sort*/}<span className="sort-icon icon-caret-down hide"></span></a></th>
|
<th width="38%">{gettext("Name")}<a className="table-sort-op by-name" href="#">{/*TODO: sort*/}<span className="sort-icon icon-caret-down hide"></span></a></th>
|
||||||
<th width="10%"><span className="sr-only">{gettext("Actions")}</span></th>
|
<th width="10%"><span className="sr-only">{gettext("Actions")}</span></th>
|
||||||
<th width="14%">{gettext("Size")}</th>
|
<th width="14%">{gettext("Size")}</th>
|
||||||
<th width="18%">{gettext("Last Update")}<a className="table-sort-op by-time" href="#">{/*TODO: sort*/}<span className="sort-icon icon-caret-up"></span></a></th>
|
<th width="18%">{gettext("Last Update")}<a className="table-sort-op by-time" href="#">{/*TODO: sort*/}<span className="sort-icon icon-caret-up"></span></a></th>
|
||||||
|
@@ -820,7 +820,7 @@ table .star .empty {
|
|||||||
table .rename-container input {
|
table .rename-container input {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
padding: 2px 3px;
|
padding: 2px 3px;
|
||||||
width: 16.25rem;
|
width: 15rem;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
line-height: 19px;
|
line-height: 19px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
Reference in New Issue
Block a user