1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 06:44:16 +00:00

modify tip style

This commit is contained in:
shanshuirenjia
2019-05-20 10:49:56 +08:00
parent ba2ac6ca49
commit 9d8d4af420
2 changed files with 10 additions and 2 deletions

View File

@@ -251,4 +251,12 @@
.dir-content-resize { .dir-content-resize {
flex: 0 0 .5%; flex: 0 0 .5%;
cursor: ew-resize; cursor: ew-resize;
}
.readonly-tip-message {
display: flex;
padding: 0.25rem 0;
background-color: #FEFBDC;
justify-content: center;
align-items: center;
} }

View File

@@ -165,8 +165,8 @@ class LibContentContainer extends React.Component {
<Fragment> <Fragment>
<div className="cur-view-container"> <div className="cur-view-container">
{this.props.currentRepoInfo.status === 'read-only' && {this.props.currentRepoInfo.status === 'read-only' &&
<div style={{background:'#FEFBDC', textAlign:'center'}}> <div className="readonly-tip-message">
<p>{gettext('This library has been set to read-only by admin and cannot be updated.')}</p> {gettext('This library has been set to read-only by admin and cannot be updated.')}
</div> </div>
} }
<div className="cur-view-path"> <div className="cur-view-path">