mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 00:43:53 +00:00
repair bug
This commit is contained in:
@@ -75,14 +75,13 @@ class SharedRepoListItem extends React.Component {
|
||||
|
||||
getRepoComputeParams = () => {
|
||||
let repo = this.props.repo;
|
||||
let currentGroup = this.props.currentGroup; //todo--change to libray
|
||||
let isReadyOnly = false;
|
||||
if ( repo.permission === 'r' || repo.permission === 'preview') {
|
||||
isReadyOnly = true;
|
||||
let isReadOnly = false;
|
||||
if (repo.permission === 'r' || repo.permission === 'preview') {
|
||||
isReadOnly = true;
|
||||
}
|
||||
let iconUrl = Utils.getLibIconUrl({
|
||||
is_encryted: repo.encrypted,
|
||||
is_readyonly: isReadyOnly,
|
||||
is_readonly: isReadOnly,
|
||||
size: Utils.isHiDPI() ? 48 : 24
|
||||
});
|
||||
let iconTitle = Utils.getLibIconTitle({
|
||||
|
@@ -25,3 +25,8 @@
|
||||
font-size: 22px;
|
||||
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>{currentGroup.name}</span>
|
||||
{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 className="path-tool">
|
||||
|
@@ -26,8 +26,8 @@ class Content extends Component {
|
||||
const desktopThead = (
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="8%"><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="4%"><span className="sr-only">{gettext("Library Type")}</span></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="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>
|
||||
|
@@ -820,7 +820,7 @@ table .star .empty {
|
||||
table .rename-container input {
|
||||
box-sizing: content-box;
|
||||
padding: 2px 3px;
|
||||
width: 16.25rem;
|
||||
width: 15rem;
|
||||
height: 22px;
|
||||
line-height: 19px;
|
||||
border-radius: 2px;
|
||||
|
Reference in New Issue
Block a user