Flip indent/outdent buttons for RTL (#2930)

This commit is contained in:
Abdo 2024-01-09 04:09:53 +03:00 committed by GitHub
parent 66d0046b8a
commit 5d1fc9a591
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,6 +75,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
$: if (disabled) {
showFloating = false;
}
const rtl = window.getComputedStyle(document.body).direction === "rtl";
</script>
<ButtonGroup>
@ -163,6 +165,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
outdentKeyCombination,
)})"
{disabled}
flipX={rtl}
on:click={outdentListItem}
--border-left-radius="5px"
--border-right-radius="0px"
@ -175,6 +178,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
indentKeyCombination,
)})"
{disabled}
flipX={rtl}
on:click={indentListItem}
--border-right-radius="5px"
>