File tree 1 file changed +5
-3
lines changed
anuvaad-fe/anuvaad-webapp/src/ui/containers/web/DocumentEditor
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -543,6 +543,7 @@ class SentenceCard extends React.Component {
543
543
< Typography
544
544
variant = "subtitle1"
545
545
gutterBottom
546
+ style = { { textAlign : shouldTypeRTL ( this . props ?. model ?. source_language_code ) ? "right" : "left" } }
546
547
onMouseUp = { ( event ) => {
547
548
if ( enableEditingSentence ) {
548
549
this . getSelectionText ( event ) ;
@@ -559,6 +560,7 @@ class SentenceCard extends React.Component {
559
560
< Typography
560
561
variant = "subtitle1"
561
562
gutterBottom
563
+ style = { { textAlign : shouldTypeRTL ( this . props ?. model ?. source_language_code ) ? "right" : "left" } }
562
564
onMouseUp = { ( event ) => {
563
565
if ( enableEditingSentence ) {
564
566
this . getSelectionText ( event ) ;
@@ -585,7 +587,7 @@ class SentenceCard extends React.Component {
585
587
) ;
586
588
return (
587
589
< div >
588
- < Typography variant = "subtitle1" gutterBottom >
590
+ < Typography variant = "subtitle1" gutterBottom style = { { textAlign : shouldTypeRTL ( this . props ?. model ?. target_language_code ) ? "right" : "left" } } >
589
591
{ modified_tgt }
590
592
</ Typography >
591
593
</ div >
@@ -594,7 +596,7 @@ class SentenceCard extends React.Component {
594
596
return (
595
597
< div >
596
598
< Divider />
597
- < Typography variant = "subtitle1" gutterBottom >
599
+ < Typography variant = "subtitle1" gutterBottom style = { { textAlign : shouldTypeRTL ( this . props ?. model ?. target_language_code ) ? "right" : "left" } } >
598
600
{ this . props . sentence . s0_tgt }
599
601
< br />
600
602
</ Typography >
@@ -606,7 +608,7 @@ class SentenceCard extends React.Component {
606
608
return (
607
609
< div >
608
610
< Divider />
609
- < Typography variant = "subtitle1" gutterBottom >
611
+ < Typography variant = "subtitle1" gutterBottom style = { { textAlign : shouldTypeRTL ( this . props ?. model ?. target_language_code ) ? "right" : "left" } } >
610
612
{ this . props . sentence . tgt }
611
613
< br />
612
614
</ Typography >
You can’t perform that action at this time.
0 commit comments