diff --git a/src/content/components/TranslatePanel.js b/src/content/components/TranslatePanel.js index 74a1c7a..12dadd8 100644 --- a/src/content/components/TranslatePanel.js +++ b/src/content/components/TranslatePanel.js @@ -195,10 +195,10 @@ export default class TranslatePanel extends Component {
+
{splitLine(resultText)}
-+
{splitLine(candidateText)}
{isError && ( diff --git a/src/content/styles/TranslatePanel.scss b/src/content/styles/TranslatePanel.scss index 8869725..f264056 100644 --- a/src/content/styles/TranslatePanel.scss +++ b/src/content/styles/TranslatePanel.scss @@ -45,7 +45,6 @@ margin: 0; font-family: "Segoe UI", "San Francisco", "Ubuntu", "Fira Sans", "Roboto", "Arial", "Helvetica", sans-serif !important; - text-align: left; word-wrap: break-word; font-size: inherit; line-height: 150%; diff --git a/src/popup/components/InputArea.js b/src/popup/components/InputArea.js index 66ddb74..c2730da 100644 --- a/src/popup/components/InputArea.js +++ b/src/popup/components/InputArea.js @@ -38,6 +38,7 @@ export default class InputArea extends Component { onChange={this.handleInputText} autoFocus spellCheck={false} + dir="auto" />{splitLine(resultText)}
- {shouldShowCandidate &&{splitLine(candidateText)}
} +{splitLine(resultText)}
+ {shouldShowCandidate &&{splitLine(candidateText)}
} {isError &&{getErrorMessage(statusText)}
} {isError && (diff --git a/src/popup/styles/ResultArea.scss b/src/popup/styles/ResultArea.scss index 4d0d34e..e293520 100644 --- a/src/popup/styles/ResultArea.scss +++ b/src/popup/styles/ResultArea.scss @@ -40,6 +40,7 @@ display: flex; flex-direction: row; justify-content: flex-end; + margin-top: 1em; margin-right: 5px; & > * { margin-left: 10px;