Skip to content

Commit

Permalink
MDL-63674 core_messaging: Bidi text support
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaies committed Feb 25, 2019
1 parent 07203d3 commit 87dc257
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@
<span class="hidden ml-2 small text-dark" data-region="not-selected-icon">{{#pix}} i/uncheckedcircle, core {{/pix}}</span>
<span class="hidden ml-2 small text-primary" data-region="selected-icon">{{#pix}} i/checkedcircle, core {{/pix}}</span>
</div>
<div>{{{text}}}</div>
<div dir="auto" align="initial">{{{text}}}</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

<div class="d-flex mt-1">
<textarea
dir="auto"
data-region="send-message-txt"
class="form-control bg-light"
rows="3"
Expand Down
4 changes: 4 additions & 0 deletions theme/boost/scss/moodle/message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,10 @@ $message-drawer-width: 320px;
.footer-container {
flex-shrink: 0;
overflow-x: hidden;

textarea {
direction: ltr;
}
}

.matchtext {
Expand Down
2 changes: 2 additions & 0 deletions theme/boost/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -14125,6 +14125,8 @@ a.ygtvspacer:hover {
.message-drawer .footer-container {
flex-shrink: 0;
overflow-x: hidden; }
.message-drawer .footer-container textarea {
direction: ltr; }
.message-drawer .matchtext {
background-color: #b5d9f9;
color: #373a3c;
Expand Down
4 changes: 4 additions & 0 deletions theme/bootstrapbase/less/moodle/message.less
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,10 @@
.footer-container {
flex-shrink: 0;
overflow-x: hidden;

textarea {
direction: ltr;
}
}

.matchtext {
Expand Down
3 changes: 3 additions & 0 deletions theme/bootstrapbase/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -9162,6 +9162,9 @@ a.ygtvspacer:hover {
flex-shrink: 0;
overflow-x: hidden;
}
.message-drawer .footer-container textarea {
direction: ltr;
}
.message-drawer .matchtext {
background-color: #ade6fe;
color: #333;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@
<span class="hidden ml-2 small text-primary" data-region="not-selected-icon">{{#pix}} i/uncheckedcircle, core {{/pix}}</span>
<span class="hidden ml-2 small text-primary" data-region="selected-icon">{{#pix}} i/checkedcircle, core {{/pix}}</span>
</div>
<div>{{{text}}}</div>
<div dir="auto" align="initial">{{{text}}}</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

<div class="d-flex mt-1">
<textarea
dir="auto"
data-region="send-message-txt"
class="form-control bg-light m-0 flex-grow"
rows="3"
Expand Down

0 comments on commit 87dc257

Please sign in to comment.