1
0
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:
liuhongbo
2024-05-17 21:16:04 +08:00
committed by 杨顺强
parent eb07c0307e
commit d9494713bf
2 changed files with 24 additions and 14 deletions

View File

@@ -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;

View File

@@ -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>