Skip to content

Commit 78fe490

Browse files
Cellzawysushain97
andauthored
Fix #488 (#494)
Attempted to fix #488 Edited padding for `form-control` class in `bootstrap.css` to prevent the copy and clear buttons from being on top of the translated text. Little note: I am a little new to open source so excuse me if I did something wrong. --------- Co-authored-by: Sushain Cherivirala <sushain@skc.name>
1 parent c7662bb commit 78fe490

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/components/translator/TextTranslationForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ const TextTranslationForm = ({
239239
aria-label={t('Input_Text')}
240240
as="textarea"
241241
autoFocus
242-
className="mb-2"
242+
className="mb-2 translation-text-input"
243243
dir={langDirection(srcLang)}
244244
onChange={({ target: { value } }) => setSrcText(value)}
245245
onKeyUp={handleSrcTextChange}
@@ -263,7 +263,7 @@ const TextTranslationForm = ({
263263
<Col md="6" xs="12">
264264
<Form.Control
265265
as="textarea"
266-
className={classNames('bg-light mb-2', { 'text-danger': error })}
266+
className={classNames('bg-light mb-2 translation-text-input', { 'text-danger': error })}
267267
dir={langDirection(tgtLang)}
268268
readOnly
269269
ref={tgtTextareaRef}

src/components/translator/translator.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,11 @@ html[dir='rtl'] .translation-modes > :not(:first-child) {
9898
border-radius: 4px;
9999
height: 700px;
100100
}
101+
102+
html[dir='ltr'] .translation-text-input {
103+
padding-right: 1.85rem;
104+
}
105+
106+
html[dir='rtl'] .translation-text-input {
107+
padding-left: 1.85rem;
108+
}

0 commit comments

Comments
 (0)