Skip to content

Commit

Permalink
feat: better support for rtl languages
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Jan 31, 2024
1 parent 70c4f5d commit 29a9bfa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/parser/tolgeeTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@ export const tolgeeThemeBase = EditorView.baseTheme({
paddingLeft: "8px",
},

'*[dir="rtl"] .placeholder-widget': {
transform: "scaleX(-1)",
// in rtl mode, revert the placeholders direction
'*[dir="rtl"] .placeholder-widget.placeholder-tagOpen': {
borderRadius: "0px 12px 12px 0px",
paddingLeft: "8px",
},

'*[dir="rtl"] .placeholder-widget > *': {
transform: "scaleX(-1)",
'*[dir="rtl"] .placeholder-widget.placeholder-tagClose': {
borderRadius: "12px 0px 0px 12px",
paddingRight: "8px",
},
});

Expand Down

0 comments on commit 29a9bfa

Please sign in to comment.