mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 07:01:12 +00:00
Ui bug repair (#2735)
This commit is contained in:
@@ -129,7 +129,7 @@ class Account extends Component {
|
|||||||
</div>
|
</div>
|
||||||
<div id="space-traffic">
|
<div id="space-traffic">
|
||||||
<div className="item">
|
<div className="item">
|
||||||
<p>{gettext('Used')}: {this.state.quotaUsage} / {this.state.quotaTotal}</p>
|
<p>{gettext('Used:')}{' '}{this.state.quotaUsage} / {this.state.quotaTotal}</p>
|
||||||
<div id="quota-bar"><span id="quota-usage" className="usage" style={{width: this.state.usageRate}}></span></div>
|
<div id="quota-bar"><span id="quota-usage" className="usage" style={{width: this.state.usageRate}}></span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -50,8 +50,8 @@ class ListTaggedFilesDialog extends React.Component {
|
|||||||
{gettext('Tagged Files')}
|
{gettext('Tagged Files')}
|
||||||
</ModalHeader>
|
</ModalHeader>
|
||||||
<ModalBody className="dialog-list-container">
|
<ModalBody className="dialog-list-container">
|
||||||
<table>
|
<table className="table-thead-hidden">
|
||||||
<thead className="table-thead-hidden">
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th width='50%' className="ellipsis">{gettext('Name')}</th>
|
<th width='50%' className="ellipsis">{gettext('Name')}</th>
|
||||||
<th width='25%'>{gettext('Size')}</th>
|
<th width='25%'>{gettext('Size')}</th>
|
||||||
|
@@ -51,8 +51,8 @@ class SharedRepoListView extends React.Component {
|
|||||||
renderPCUI = () => {
|
renderPCUI = () => {
|
||||||
let isShowTableThread = this.props.isShowTableThread !== undefined ? this.props.isShowTableThread : true;
|
let isShowTableThread = this.props.isShowTableThread !== undefined ? this.props.isShowTableThread : true;
|
||||||
return (
|
return (
|
||||||
<table>
|
<table className={isShowTableThread ? '' : 'table-thead-hidden'}>
|
||||||
<thead className={isShowTableThread ? '' : 'table-thead-hidden'}>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="4%"><span className="sr-only">{gettext("Library Type")}</span></th>
|
<th width="4%"><span className="sr-only">{gettext("Library Type")}</span></th>
|
||||||
<th width="40%">{gettext("Name")}
|
<th width="40%">{gettext("Name")}
|
||||||
@@ -76,8 +76,8 @@ class SharedRepoListView extends React.Component {
|
|||||||
renderMobileUI = () => {
|
renderMobileUI = () => {
|
||||||
let isShowTableThread = this.props.isShowTableThread !== undefined ? this.props.isShowTableThread : true;
|
let isShowTableThread = this.props.isShowTableThread !== undefined ? this.props.isShowTableThread : true;
|
||||||
return (
|
return (
|
||||||
<table>
|
<table className={isShowTableThread ? '' : 'table-thead-hidden'}>
|
||||||
<thead className={isShowTableThread ? '' : 'vh'}>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="18%"><span className="sr-only">{gettext("Library Type")}</span></th>
|
<th width="18%"><span className="sr-only">{gettext("Library Type")}</span></th>
|
||||||
<th width="68%">
|
<th width="68%">
|
||||||
|
@@ -24,7 +24,7 @@ class GroupsToolbar extends React.Component {
|
|||||||
<div className="cur-view-toolbar border-left-show">
|
<div className="cur-view-toolbar border-left-show">
|
||||||
<div className="operation">
|
<div className="operation">
|
||||||
<Button color="btn btn-secondary operation-item" onClick={this.props.toggleAddGroupModal}>
|
<Button color="btn btn-secondary operation-item" onClick={this.props.toggleAddGroupModal}>
|
||||||
<i className="fas fa-plus-square action-icon"></i>{gettext("New Group")}
|
<i className="fas fa-plus-square text-secondary mr-1"></i>{gettext("New Group")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<span title="Side Nav Menu" onClick={onShowSidePanel}
|
<span title="Side Nav Menu" onClick={onShowSidePanel}
|
||||||
|
@@ -42,8 +42,7 @@ class RepoViewToolbar extends React.Component {
|
|||||||
<span className="sf2-icon-menu side-nav-toggle hidden-md-up d-md-none" title="Side Nav Menu" onClick={this.props.onShowSidePanel}></span>
|
<span className="sf2-icon-menu side-nav-toggle hidden-md-up d-md-none" title="Side Nav Menu" onClick={this.props.onShowSidePanel}></span>
|
||||||
<div className="operation">
|
<div className="operation">
|
||||||
<button className="btn btn-secondary operation-item" title={gettext('New Library')} onClick={this.onCreateToggle}>
|
<button className="btn btn-secondary operation-item" title={gettext('New Library')} onClick={this.onCreateToggle}>
|
||||||
<i className="fas fa-plus-square action-icon"></i>
|
<i className="fas fa-plus-square text-secondary mr-1"></i>{gettext('New Library')}
|
||||||
{gettext('New Library')}
|
|
||||||
</button>
|
</button>
|
||||||
{this.props.libraryType !== 'group' && (
|
{this.props.libraryType !== 'group' && (
|
||||||
<Dropdown isOpen={this.state.isOpen} toggle={this.toggleMore}>
|
<Dropdown isOpen={this.state.isOpen} toggle={this.toggleMore}>
|
||||||
|
@@ -308,8 +308,7 @@ class GroupView extends React.Component {
|
|||||||
<span className="sf2-icon-menu side-nav-toggle hidden-md-up d-md-none" title="Side Nav Menu" onClick={this.props.onShowSidePanel}></span>
|
<span className="sf2-icon-menu side-nav-toggle hidden-md-up d-md-none" title="Side Nav Menu" onClick={this.props.onShowSidePanel}></span>
|
||||||
<div className="operation">
|
<div className="operation">
|
||||||
<button className="btn btn-secondary operation-item" title={gettext('New Library')} onClick={this.onCreateRepoToggle}>
|
<button className="btn btn-secondary operation-item" title={gettext('New Library')} onClick={this.onCreateRepoToggle}>
|
||||||
<i className="fas fa-plus-square action-icon"></i>
|
<i className="fas fa-plus-square text-secondary mr-1"></i>{gettext('New Library')}
|
||||||
{gettext('New Library')}
|
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -160,8 +160,7 @@ class PublicSharedView extends React.Component {
|
|||||||
<div className="operation">
|
<div className="operation">
|
||||||
<Dropdown isOpen={this.state.isCreateMenuShow} toggle={this.onAddRepoToggle}>
|
<Dropdown isOpen={this.state.isCreateMenuShow} toggle={this.onAddRepoToggle}>
|
||||||
<DropdownToggle className='btn btn-secondary operation-item'>
|
<DropdownToggle className='btn btn-secondary operation-item'>
|
||||||
<i className="fas fa-plus-square action-icon"></i>
|
<i className="fas fa-plus-square text-secondary mr-1"></i>{gettext('Add Library')}
|
||||||
{gettext('Add Library')}
|
|
||||||
</DropdownToggle>
|
</DropdownToggle>
|
||||||
<DropdownMenu>
|
<DropdownMenu>
|
||||||
<DropdownItem onClick={this.onSelectRepoToggle}>{gettext('Share existing libraries')}</DropdownItem>
|
<DropdownItem onClick={this.onSelectRepoToggle}>{gettext('Share existing libraries')}</DropdownItem>
|
||||||
|
@@ -123,16 +123,9 @@ class Wikis extends Component {
|
|||||||
<div className="cur-view-toolbar border-left-show">
|
<div className="cur-view-toolbar border-left-show">
|
||||||
<span className="sf2-icon-menu side-nav-toggle hidden-md-up d-md-none" title="Side Nav Menu" onClick={this.props.onShowSidePanel}></span>
|
<span className="sf2-icon-menu side-nav-toggle hidden-md-up d-md-none" title="Side Nav Menu" onClick={this.props.onShowSidePanel}></span>
|
||||||
<div className="operation">
|
<div className="operation">
|
||||||
<Dropdown tag="div" className="btn btn-secondary operation-item" isOpen={this.state.isShowAddWikiMenu} toggle={this.onMenuToggle}>
|
<Dropdown tag="div" isOpen={this.state.isShowAddWikiMenu} toggle={this.onMenuToggle}>
|
||||||
<DropdownToggle
|
<DropdownToggle className="btn btn-secondary operation-item">
|
||||||
tag="i"
|
<i className="fa fa-plus-square text-secondary mr-1"></i>{gettext('Add Wiki')}
|
||||||
className="fa fa-plus-square action-icon"
|
|
||||||
title={gettext('More Operations')}
|
|
||||||
data-toggle="dropdown"
|
|
||||||
aria-expanded={this.state.isShowAddWikiMenu}
|
|
||||||
onClick={this.clickMenuToggle}
|
|
||||||
>
|
|
||||||
{' '}<span className="btn-secondary">{gettext('Add Wiki')}</span>
|
|
||||||
</DropdownToggle>
|
</DropdownToggle>
|
||||||
<DropdownMenu>
|
<DropdownMenu>
|
||||||
<DropdownItem onClick={this.onCreateToggle}>{gettext('New Wiki')}</DropdownItem>
|
<DropdownItem onClick={this.onCreateToggle}>{gettext('New Wiki')}</DropdownItem>
|
||||||
|
@@ -321,7 +321,6 @@ ul,ol,li {
|
|||||||
|
|
||||||
.action-icon,
|
.action-icon,
|
||||||
.attr-action-icon {
|
.attr-action-icon {
|
||||||
margin-right: 0.25rem;
|
|
||||||
color:#888;
|
color:#888;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -822,11 +821,11 @@ table {
|
|||||||
|
|
||||||
table tr {
|
table tr {
|
||||||
height: 2.1875rem;
|
height: 2.1875rem;
|
||||||
border-bottom: 1px solid #eee;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
table th, table td {
|
table th, table td {
|
||||||
padding: 0.3125rem 0.1875rem;
|
padding: 0.3125rem 0.1875rem;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
table th {
|
table th {
|
||||||
|
Reference in New Issue
Block a user