mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 16:36:15 +00:00
style: adjust element hierarchy
This commit is contained in:
@@ -87,6 +87,7 @@
|
||||
|
||||
|
||||
.sdoc-file-history .sdoc-file-history-content {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -107,6 +108,7 @@
|
||||
|
||||
.sdoc-file-history.mobile .sdoc-file-history-container .sdoc-file-history-content .sdoc-editor-content {
|
||||
padding: 0;
|
||||
min-width: auto;
|
||||
}
|
||||
|
||||
.sdoc-file-history .sdoc-file-history-content .sdoc-scroll-container {
|
||||
@@ -118,6 +120,10 @@
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.sdoc-editor-container.mobile .sdoc-editor-content.readonly .sdoc-article-container {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sdoc-file-history .sdoc-file-history-content .sdoc-article-container {
|
||||
width: 100%;
|
||||
padding-top: 0;
|
||||
|
@@ -367,21 +367,25 @@ class SdocFileHistory extends React.Component {
|
||||
<Loading />
|
||||
</div>
|
||||
) : (
|
||||
<DiffViewer
|
||||
currentContent={currentVersionContent}
|
||||
lastContent={isShowChanges ? lastVersionContent : ''}
|
||||
didMountCallback={this.setDiffCount}
|
||||
rightSideDrawer={
|
||||
showSidePanel && <SidePanel
|
||||
isShowChanges={isShowChanges}
|
||||
currentVersion={currentVersion}
|
||||
onSelectHistoryVersion={this.onSelectHistoryVersion}
|
||||
onShowChanges={this.onShowChanges}
|
||||
sidePanelInitData={sidePanelInitData}
|
||||
onClose={this.changeSidePanelStatus}
|
||||
/>
|
||||
<>
|
||||
<DiffViewer
|
||||
currentContent={currentVersionContent}
|
||||
lastContent={isShowChanges ? lastVersionContent : ''}
|
||||
didMountCallback={this.setDiffCount}
|
||||
/>
|
||||
{
|
||||
showSidePanel && (
|
||||
<SidePanel
|
||||
isShowChanges={isShowChanges}
|
||||
currentVersion={currentVersion}
|
||||
onSelectHistoryVersion={this.onSelectHistoryVersion}
|
||||
onShowChanges={this.onShowChanges}
|
||||
sidePanelInitData={sidePanelInitData}
|
||||
onClose={this.changeSidePanelStatus}
|
||||
/>
|
||||
)
|
||||
}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user