Ui improvements (#3963)
* PLT-4061 - Updating pdf preview pages message * PLT-4063 - Fixing spacing for LDAP button * PLT-3837 - Showing reply button on mobile in the RHS * PLT-4046 - Cantering tutorial on older mobile versions
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
af0df81a97
Коммит
9a9ae3dcd1
@@ -66,28 +66,32 @@ export default class LdapTestButton extends React.Component {
|
||||
let message = null;
|
||||
if (this.state.fail) {
|
||||
message = (
|
||||
<div className='alert alert-warning'>
|
||||
<i className='fa fa-warning'/>
|
||||
<FormattedMessage
|
||||
id='admin.ldap.testFailure'
|
||||
defaultMessage='LDAP Test Failure: {error}'
|
||||
values={{
|
||||
error: this.state.fail
|
||||
}}
|
||||
/>
|
||||
<div>
|
||||
<div className='alert alert-warning'>
|
||||
<i className='fa fa-warning'/>
|
||||
<FormattedMessage
|
||||
id='admin.ldap.testFailure'
|
||||
defaultMessage='LDAP Test Failure: {error}'
|
||||
values={{
|
||||
error: this.state.fail
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
} else if (this.state.success) {
|
||||
message = (
|
||||
<div className='alert alert-success'>
|
||||
<i className='fa fa-success'/>
|
||||
<FormattedMessage
|
||||
id='admin.ldap.testSuccess'
|
||||
defaultMessage='LDAP Test Successful'
|
||||
values={{
|
||||
error: this.state.fail
|
||||
}}
|
||||
/>
|
||||
<div>
|
||||
<div className='alert alert-success'>
|
||||
<i className='fa fa-success'/>
|
||||
<FormattedMessage
|
||||
id='admin.ldap.testSuccess'
|
||||
defaultMessage='LDAP Test Successful'
|
||||
values={{
|
||||
error: this.state.fail
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -164,12 +164,15 @@ export default class PDFPreview extends React.Component {
|
||||
|
||||
if (this.state.pdf.numPages > MAX_PDF_PAGES) {
|
||||
pdfCanvases.push(
|
||||
<div className='pdf-max-pages'>
|
||||
<a
|
||||
href={this.props.fileUrl}
|
||||
className='pdf-max-pages'
|
||||
>
|
||||
<FormattedMessage
|
||||
id='pdf_preview.max_pages'
|
||||
defaultMessage='PDF previews only show the first five pages.'
|
||||
defaultMessage='Download to read more pages'
|
||||
/>
|
||||
</div>
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1496,7 +1496,7 @@
|
||||
"password_send.link": "<p>A password reset link has been sent to <b>{email}</b></p>",
|
||||
"password_send.reset": "Reset my password",
|
||||
"password_send.title": "Password Reset",
|
||||
"pdf_preview.max_pages": "PDF previews only show the first five pages.",
|
||||
"pdf_preview.max_pages": "Download to read more pages",
|
||||
"pending_post_actions.cancel": "Cancel",
|
||||
"pending_post_actions.retry": "Retry",
|
||||
"permalink.error.access": "Permalink belongs to a deleted message or to a channel to which you do not have access.",
|
||||
|
||||
@@ -139,8 +139,9 @@
|
||||
}
|
||||
|
||||
.pdf-max-pages {
|
||||
bottom: 0;
|
||||
background: $white;
|
||||
bottom: 0;
|
||||
display: block;
|
||||
left: 0;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
@@ -138,6 +138,10 @@
|
||||
display: none;
|
||||
visibility: visible;
|
||||
|
||||
.sidebar--right & {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&.icon--show {
|
||||
display: inline-block;
|
||||
}
|
||||
@@ -1159,6 +1163,14 @@
|
||||
}
|
||||
|
||||
@media screen and (max-width: 320px) {
|
||||
.tutorial-steps__container {
|
||||
.tutorial__content {
|
||||
.tutorial__steps {
|
||||
padding: 0 20px;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.tip-overlay {
|
||||
&.tip-overlay--sidebar {
|
||||
min-height: 440px;
|
||||
|
||||
@@ -52,6 +52,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
&.btn-spacing--right {
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.log__panel {
|
||||
background-color: white;
|
||||
border: 1px solid #ddd;
|
||||
|
||||
Ссылка в новой задаче
Block a user