Skip to content

Commit

Permalink
fix: fix RTL text direction in multi-line input field
Browse files Browse the repository at this point in the history
fixes #739 and fixes #169
  • Loading branch information
chhoumann committed Nov 17, 2024
1 parent 085fd45 commit 6dda1a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/GenericWideInputPrompt/GenericWideInputPrompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default class GenericWideInputPrompt extends Modal {
const textComponent = new TextAreaComponent(container);

textComponent.inputEl.classList.add("wideInputPromptInputEl");
textComponent.inputEl.setAttribute("dir", "auto");
textComponent
.setPlaceholder(placeholder ?? "")
.setValue(value ?? "")
Expand Down
6 changes: 6 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
width: 20rem;
max-width: 100%;
height: 3rem;
direction: inherit;
text-align: inherit;
}
}

Expand All @@ -67,6 +69,8 @@
width: 30rem;
max-width: 100%;
height: 20rem;
direction: inherit;
text-align: inherit;
}
}

Expand All @@ -88,6 +92,8 @@
width: 40rem;
max-width: 100%;
height: 20rem;
direction: inherit;
text-align: inherit;
}
}

Expand Down

0 comments on commit 6dda1a0

Please sign in to comment.