Skip to content

Commit

Permalink
Fix icons in Help window's contents tree in RTL layout
Browse files Browse the repository at this point in the history
These background-position offsets are indexing into a spritesheet,
and so should not be flipped for right-to-left (RTL) languages.

(Not to mention, the Help window isn't laid out RTL currently.)
  • Loading branch information
1j01 committed Mar 3, 2024
1 parent 4363cc3 commit 9641688
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -879,14 +879,14 @@ html, body, .jspaint {
vertical-align: middle;
width: 16px;
height: 16px;
background-position: 0 0;
background-position: 0 0/*rtl:ignore*/;
margin-right: 2px;
}
.help-window .folder.expanded:before {
background-position: -16px 0;
background-position: -16px 0/*rtl:ignore*/;
}
.help-window .page:before {
background-position: -32px 0;
background-position: -32px 0/*rtl:ignore*/;
}

.dragging iframe {
Expand Down
6 changes: 3 additions & 3 deletions styles/layout.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -879,14 +879,14 @@ html, body, .jspaint {
vertical-align: middle;
width: 16px;
height: 16px;
background-position: 100% 0;
background-position: 0 0;
margin-left: 2px;
}
.help-window .folder.expanded:before {
background-position: right -16px top 0;
background-position: -16px 0;
}
.help-window .page:before {
background-position: right -32px top 0;
background-position: -32px 0;
}

.dragging iframe {
Expand Down

0 comments on commit 9641688

Please sign in to comment.