From 9641688b2a643beac775e2c32f59cb28dd3f236b Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Sat, 2 Mar 2024 23:08:51 -0500 Subject: [PATCH] Fix icons in Help window's contents tree in RTL layout 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.) --- styles/layout.css | 6 +++--- styles/layout.rtl.css | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/styles/layout.css b/styles/layout.css index 2595ee80..2cbab618 100644 --- a/styles/layout.css +++ b/styles/layout.css @@ -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 { diff --git a/styles/layout.rtl.css b/styles/layout.rtl.css index b7ecf83d..90ca84a4 100644 --- a/styles/layout.rtl.css +++ b/styles/layout.rtl.css @@ -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 {