Add wide variant of simple answers
This commit is contained in:
parent
b3c1013cac
commit
de061c2bec
3 changed files with 19 additions and 0 deletions
|
@ -85,6 +85,16 @@ header {
|
|||
font-weight: 600;
|
||||
}
|
||||
|
||||
.answer-kind-simple {
|
||||
margin-top: 1rem;
|
||||
text-align: end;
|
||||
}
|
||||
|
||||
.simple-answer-wide {
|
||||
width: 30rem;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.answer-kind-image {
|
||||
.answer-kind-image-container {
|
||||
text-align: center;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<input id="<%= "question_answer_#{question.id}" %>"
|
||||
class="<%= "simple-answer-wide" if question.data&.fetch("wide") %>"
|
||||
type="text"
|
||||
value="<%= question.answer&.data || '' %>"
|
||||
autocomplete="off"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue