Browse Source

Fix issues in RTL layout in web UI (#12060)

pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
9184522cb4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 1 deletions
  1. +2
    -0
      app/javascript/styles/mastodon/components.scss
  2. +34
    -1
      app/javascript/styles/mastodon/rtl.scss

+ 2
- 0
app/javascript/styles/mastodon/components.scss View File

@ -5125,6 +5125,7 @@ a.status-card.compact:hover {
background: darken($ui-base-color, 8%);
border-radius: 4px;
padding-bottom: 44px;
direction: ltr;
&.editable {
border-radius: 0;
@ -5172,6 +5173,7 @@ a.status-card.compact:hover {
max-width: 100%;
border-radius: 4px;
box-sizing: border-box;
direction: ltr;
&.editable {
border-radius: 0;

+ 34
- 1
app/javascript/styles/mastodon/rtl.scss View File

@ -7,6 +7,34 @@ body.rtl {
padding-right: 15px;
}
.radio-button__input {
margin-right: 0;
margin-left: 10px;
}
.directory__card__bar .display-name {
margin-left: 0;
margin-right: 15px;
}
.display-name {
text-align: right;
}
.notification__message {
margin-left: 0;
margin-right: 68px;
}
.drawer__inner__mastodon > img {
transform: scaleX(-1);
}
.notification__favourite-icon-wrapper {
left: auto;
right: -26px;
}
.landing-page__logo {
margin-right: 0;
margin-left: 20px;
@ -135,7 +163,6 @@ body.rtl {
}
.status__action-bar {
&__counter {
margin-right: 0;
margin-left: 11px;
@ -328,6 +355,12 @@ body.rtl {
}
}
.columns-area--mobile .column,
.columns-area--mobile .drawer {
padding-left: 0;
padding-right: 0;
}
.public-layout {
.header {
.nav-button {

Loading…
Cancel
Save