Skip to content
Snippets Groups Projects
Commit 52935269 authored by jojohoch's avatar jojohoch
Browse files

Fix display errors of input fields in cloze texts in FireFox

- Add left and right padding for input field
parent 956b1b32
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ Player
### Fehlerbehebungen
- Korrigiert das Scroll-Verhalten von versteckten Abschnitten mit unterschiedlichen Verzögerungen
- Korrigiert Darstellungsfehler von Eingabefeldern in Lückentexten in FireFox
## 1.28.2
### Verbesserungen
......
......@@ -10,7 +10,7 @@ import { TextInputComponent } from 'common/directives/text-input-component.direc
selector: 'aspect-text-field-simple',
template: `
<input #input
class="clozeChild"
class="cloze-child"
autocomplete="off"
autocapitalize="none"
autocorrect="off"
......@@ -37,10 +37,10 @@ import { TextInputComponent } from 'common/directives/text-input-component.direc
(blur)="focusChanged.emit({ inputElement: input, focused: false })">
`,
styles: [
'.clozeChild {border: 1px solid rgba(0,0,0,.12); border-radius: 4px}',
'input {width: calc(100% - 2px); height: calc(100% - 2px); padding: 0 0 1px 0;}',
'.cloze-child {border: 1px solid rgba(0,0,0,.12); border-radius: 4px;}',
'input {width: 100%; height: 100%; padding: 0 2px; box-sizing: border-box}',
'input:hover {border: 1px solid currentColor;}',
'input:focus {outline: 1px solid #3f51b5;}',
'input:focus {border: 1px solid #3f51b5; outline: 0}',
'.errors {border: 2px solid #f44336 !important;}'
]
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment