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