File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
anuvaad-fe/anuvaad-webapp/src/ui/containers/web/DocumentEditor Expand file tree Collapse file tree 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 {
543543 < Typography
544544 variant = "subtitle1"
545545 gutterBottom
546+ style = { { textAlign : shouldTypeRTL ( this . props ?. model ?. source_language_code ) ? "right" : "left" } }
546547 onMouseUp = { ( event ) => {
547548 if ( enableEditingSentence ) {
548549 this . getSelectionText ( event ) ;
@@ -559,6 +560,7 @@ class SentenceCard extends React.Component {
559560 < Typography
560561 variant = "subtitle1"
561562 gutterBottom
563+ style = { { textAlign : shouldTypeRTL ( this . props ?. model ?. source_language_code ) ? "right" : "left" } }
562564 onMouseUp = { ( event ) => {
563565 if ( enableEditingSentence ) {
564566 this . getSelectionText ( event ) ;
@@ -585,7 +587,7 @@ class SentenceCard extends React.Component {
585587 ) ;
586588 return (
587589 < div >
588- < Typography variant = "subtitle1" gutterBottom >
590+ < Typography variant = "subtitle1" gutterBottom style = { { textAlign : shouldTypeRTL ( this . props ?. model ?. target_language_code ) ? "right" : "left" } } >
589591 { modified_tgt }
590592 </ Typography >
591593 </ div >
@@ -594,7 +596,7 @@ class SentenceCard extends React.Component {
594596 return (
595597 < div >
596598 < Divider />
597- < Typography variant = "subtitle1" gutterBottom >
599+ < Typography variant = "subtitle1" gutterBottom style = { { textAlign : shouldTypeRTL ( this . props ?. model ?. target_language_code ) ? "right" : "left" } } >
598600 { this . props . sentence . s0_tgt }
599601 < br />
600602 </ Typography >
@@ -606,7 +608,7 @@ class SentenceCard extends React.Component {
606608 return (
607609 < div >
608610 < Divider />
609- < Typography variant = "subtitle1" gutterBottom >
611+ < Typography variant = "subtitle1" gutterBottom style = { { textAlign : shouldTypeRTL ( this . props ?. model ?. target_language_code ) ? "right" : "left" } } >
610612 { this . props . sentence . tgt }
611613 < br />
612614 </ Typography >
You can’t perform that action at this time.
0 commit comments