mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-02 07:47:32 +00:00
optimzied ui
This commit is contained in:
parent
7d2185ddab
commit
46d035de10
@ -392,13 +392,17 @@ class GroupView extends React.Component {
|
||||
<Link to={`${siteRoot}groups/`} onClick={() => this.onTabNavClick('groups')}>{gettext('Groups')}</Link>
|
||||
<span className="path-split">/</span>
|
||||
<span>{currentGroup.name}</span>
|
||||
{isDepartmentGroup && currentGroup.group_quota && (
|
||||
{isDepartmentGroup && (
|
||||
<Fragment>
|
||||
<span className="department-group-icon fas fa-building" title={gettext('This is a special group representing a department.')}></span>
|
||||
<div className="department-usage">
|
||||
<span id="quota-bar" className="department-quota-bar"><span id="quota-usage" className="usage" style={{width: useRate}}></span></span>
|
||||
<span className="department-quota-info">{Utils.bytesToSize(currentGroup.group_quota_usage)} / {Utils.bytesToSize(currentGroup.group_quota)}</span>
|
||||
</div>
|
||||
{currentGroup.group_quota > 0 &&
|
||||
<span className="department-usage-container">
|
||||
<div className="department-usage">
|
||||
<span id="quota-bar" className="department-quota-bar"><span id="quota-usage" className="usage" style={{width: useRate}}></span></span>
|
||||
<span className="department-quota-info">{Utils.bytesToSize(currentGroup.group_quota_usage)} / {Utils.bytesToSize(currentGroup.group_quota)}</span>
|
||||
</div>
|
||||
</span>
|
||||
}
|
||||
</Fragment>
|
||||
)}
|
||||
</div>
|
||||
|
@ -475,18 +475,23 @@ ul,ol,li {
|
||||
}
|
||||
|
||||
/** deparentment-usage **/
|
||||
.department-usage-container {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.department-usage {
|
||||
float: right;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 0.75rem;
|
||||
width: 15rem;
|
||||
}
|
||||
|
||||
.department-usage .department-quota-bar {
|
||||
flex: 1;
|
||||
margin-right: 0.5rem !important;
|
||||
height: 0.75rem !important;
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
.department-usage .department-quota-info {
|
||||
|
Loading…
Reference in New Issue
Block a user