Skip to content

Commit

Permalink
fix(#8541): fixes display of Enketo select option (#8565)
Browse files Browse the repository at this point in the history
Fixes display for:
- Long and shot words
- Long and short sentences
  • Loading branch information
latin-panda authored Oct 26, 2023
1 parent 77b8ada commit a2d0cca
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions webapp/src/css/enketo/medic.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,19 @@
#form-languages {
display: none;
}
.option-wrapper {

.dropdown-menu .option-wrapper {
padding: 3px;
.option-label {
width: calc(100% - 34px);
}
}

.question:not(.or-appearance-likert):not(.or-appearance-columns) .option-wrapper {
.option-label.active {
white-space: normal;
word-break: normal;
word-break: break-word;
display: contents;
}
}
}
Expand Down Expand Up @@ -263,7 +272,7 @@
}

.option-wrapper > label:not(.filler) {
margin-right: 10px;
margin: 0;
padding-top: 8px;
padding-bottom: 8px;
border-radius: @radius-size-small;
Expand Down Expand Up @@ -434,8 +443,6 @@
.option-wrapper > label:not(.filler) {
padding-top: 9px;
padding-bottom: 9px;
margin-top: 1px;
margin-bottom: 1px;

&:hover {
background-color: inherit;
Expand Down

0 comments on commit a2d0cca

Please sign in to comment.