mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Flip indent/outdent buttons for RTL (#2930)
This commit is contained in:
parent
66d0046b8a
commit
5d1fc9a591
1 changed files with 4 additions and 0 deletions
|
@ -75,6 +75,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
$: if (disabled) {
|
$: if (disabled) {
|
||||||
showFloating = false;
|
showFloating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const rtl = window.getComputedStyle(document.body).direction === "rtl";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ButtonGroup>
|
<ButtonGroup>
|
||||||
|
@ -163,6 +165,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
outdentKeyCombination,
|
outdentKeyCombination,
|
||||||
)})"
|
)})"
|
||||||
{disabled}
|
{disabled}
|
||||||
|
flipX={rtl}
|
||||||
on:click={outdentListItem}
|
on:click={outdentListItem}
|
||||||
--border-left-radius="5px"
|
--border-left-radius="5px"
|
||||||
--border-right-radius="0px"
|
--border-right-radius="0px"
|
||||||
|
@ -175,6 +178,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
indentKeyCombination,
|
indentKeyCombination,
|
||||||
)})"
|
)})"
|
||||||
{disabled}
|
{disabled}
|
||||||
|
flipX={rtl}
|
||||||
on:click={indentListItem}
|
on:click={indentListItem}
|
||||||
--border-right-radius="5px"
|
--border-right-radius="5px"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue