mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 23:02:26 +00:00
[style]history-panel (#2946)
This commit is contained in:
@@ -122,3 +122,33 @@
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #6e7687;
|
color: #6e7687;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.history-content .main-panel {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.history-content .history-side-panel {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
user-select: none;
|
||||||
|
border-left: 1px solid #e5e5e5;
|
||||||
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.history-content .history-side-panel .history-side-panel-title {
|
||||||
|
height: 50px;
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
line-height: 50px;
|
||||||
|
font-size: 1rem;
|
||||||
|
padding: 0 10px;
|
||||||
|
background-color: rgb(250,250,249);
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width:992px) {
|
||||||
|
.history-side-panel {
|
||||||
|
width: 260px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -88,12 +88,12 @@ class FileHistory extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="main" className="history-content">
|
<div id="main" className="history-content">
|
||||||
<SidePanel onItemClick={this.onHistoryItemClick}/>
|
|
||||||
<MainPanel
|
<MainPanel
|
||||||
newMarkdownContent={this.state.newMarkdownContent}
|
newMarkdownContent={this.state.newMarkdownContent}
|
||||||
oldMarkdownContent={this.state.oldMarkdownContent}
|
oldMarkdownContent={this.state.oldMarkdownContent}
|
||||||
renderingContent={this.state.renderingContent}
|
renderingContent={this.state.renderingContent}
|
||||||
/>
|
/>
|
||||||
|
<SidePanel onItemClick={this.onHistoryItemClick}/>
|
||||||
</div>
|
</div>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
|
@@ -97,9 +97,9 @@ class SidePanel extends React.Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="side-panel">
|
<div className="side-panel history-side-panel">
|
||||||
<div className="side-panel-center">
|
<div className="side-panel-center">
|
||||||
<div className="panel-header">{gettext('History Versions')}</div>
|
<div className="history-side-panel-title">{gettext('History Versions')}</div>
|
||||||
<div className="history-body">
|
<div className="history-body">
|
||||||
{this.state.isLoading && <Loading />}
|
{this.state.isLoading && <Loading />}
|
||||||
{this.state.historyInfo &&
|
{this.state.historyInfo &&
|
||||||
|
Reference in New Issue
Block a user