1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00

add a limit class for router container (#3197)

This commit is contained in:
杨顺强
2019-04-01 14:46:14 +08:00
committed by Daniel Pan
parent 597d22c403
commit 895124495c
4 changed files with 4 additions and 4 deletions

View File

@@ -184,7 +184,7 @@ class App extends Component {
<div id="main">
<SidePanel isSidePanelClosed={this.state.isSidePanelClosed} onCloseSidePanel={this.onCloseSidePanel} currentTab={currentTab} tabItemClick={this.tabItemClick} draftCounts={this.state.draftCounts} />
<MainPanel>
<Router>
<Router className="reach-router">
{home}
<FilesActivitiesWrapper path={siteRoot + 'dashboard'} onShowSidePanel={this.onShowSidePanel} onSearchedClick={this.onSearchedClick} />
<DraftsViewWrapper path={siteRoot + 'drafts'}

View File

@@ -135,7 +135,7 @@
}
/* for reach/router */
[role=group] {
.reach-router[role=group] {
display: flex;
flex: 1;
flex-direction: column;

View File

@@ -78,7 +78,7 @@ class Org extends React.Component {
<div id="main">
<SidePanel isSidePanelClosed={isSidePanelClosed} onCloseSidePanel={this.onCloseSidePanel} currentTab={currentTab} tabItemClick={this.tabItemClick} />
<MainPanel currentTab={currentTab} toggleAddOrgAdmin={this.toggleAddOrgAdmin} toggleAddOrgUser={this.toggleAddOrgUser} toggleInviteUserDialog={this.toggleInviteUserDialog}>
<Router>
<Router className="reach-router">
<OrgInfo path={siteRoot + 'org/orgmanage'} />
<OrgUsers
path={siteRoot + 'org/useradmin'}

View File

@@ -41,7 +41,7 @@ class SysAdmin extends React.Component {
<div id="main">
<SidePanel isSidePanelClosed={isSidePanelClosed} onCloseSidePanel={this.onCloseSidePanel} />
<MainPanel>
<Router>
<Router className="reach-router">
<FileScanRecords
path={siteRoot + 'sys/file-scan-records'}
currentTab={currentTab}