Browse Source

Fix #6757: Adjust RTL styles for landing page (#6768)

pull/4/head
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
8bf3e750ab
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 2 deletions
  1. +1
    -1
      app/javascript/mastodon/components/status_content.js
  2. +16
    -0
      app/javascript/styles/mastodon/rtl.scss
  3. +1
    -1
      app/views/about/show.html.haml

+ 1
- 1
app/javascript/mastodon/components/status_content.js View File

@ -154,7 +154,7 @@ export default class StatusContent extends React.PureComponent {
}
return (
<div className={classNames} ref={this.setRef} tabIndex='0' onMouseDown={this.handleMouseDown} onMouseUp={this.handleMouseUp}>
<div className={classNames} ref={this.setRef} tabIndex='0' style={directionStyle} onMouseDown={this.handleMouseDown} onMouseUp={this.handleMouseUp}>
<p style={{ marginBottom: hidden && status.get('mentions').isEmpty() ? '0px' : null }}>
<span dangerouslySetInnerHTML={spoilerContent} />
{' '}

+ 16
- 0
app/javascript/styles/mastodon/rtl.scss View File

@ -1,6 +1,22 @@
body.rtl {
direction: rtl;
.column-header > button {
text-align: right;
padding-left: 0;
padding-right: 15px;
}
.landing-page__logo {
margin-right: 0;
margin-left: 20px;
}
.landing-page .features-list .features-list__row .visual {
margin-left: 0;
margin-right: 15px;
}
.column-link__icon,
.column-header__icon {
margin-right: 0;

+ 1
- 1
app/views/about/show.html.haml View File

@ -50,7 +50,7 @@
%p= @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
.landing-page__call-to-action
.landing-page__call-to-action{ dir: 'ltr' }
.row
.row__information-board
.information-board__section

Loading…
Cancel
Save