diff --git a/rdmo/projects/assets/js/interview/components/main/widget/RangeInput.js b/rdmo/projects/assets/js/interview/components/main/widget/RangeInput.js
index 7f28d9f28..dc86dc4e1 100644
--- a/rdmo/projects/assets/js/interview/components/main/widget/RangeInput.js
+++ b/rdmo/projects/assets/js/interview/components/main/widget/RangeInput.js
@@ -18,6 +18,7 @@ const RangeInput = ({ question, value, disabled, updateValue, buttons }) => {
const classnames = classNames({
'interview-input': true,
+ 'range-input': true,
'range': true,
'default': isDefaultValue(question, value)
})
diff --git a/rdmo/projects/assets/js/interview/components/main/widget/SelectInput.js b/rdmo/projects/assets/js/interview/components/main/widget/SelectInput.js
index b53f1f6ba..a037a5eef 100644
--- a/rdmo/projects/assets/js/interview/components/main/widget/SelectInput.js
+++ b/rdmo/projects/assets/js/interview/components/main/widget/SelectInput.js
@@ -105,7 +105,7 @@ const SelectInput = ({ question, value, options, disabled, creatable, updateValu
}
return (
-
+
{
creatable ? (
isAsync ? (
diff --git a/rdmo/projects/assets/js/interview/components/main/widget/TextInput.js b/rdmo/projects/assets/js/interview/components/main/widget/TextInput.js
index 6e16be15b..3a122f35e 100644
--- a/rdmo/projects/assets/js/interview/components/main/widget/TextInput.js
+++ b/rdmo/projects/assets/js/interview/components/main/widget/TextInput.js
@@ -33,7 +33,7 @@ const TextInput = ({ question, value, disabled, updateValue, buttons }) => {
})
return (
-
+
{buttons}
{
})
return (
-
+
diff --git a/rdmo/projects/assets/js/interview/components/main/widget/YesNoInput.js b/rdmo/projects/assets/js/interview/components/main/widget/YesNoInput.js
index 721667329..edd2add2b 100644
--- a/rdmo/projects/assets/js/interview/components/main/widget/YesNoInput.js
+++ b/rdmo/projects/assets/js/interview/components/main/widget/YesNoInput.js
@@ -22,7 +22,7 @@ const YesNoInput = ({ question, value, disabled, updateValue, buttons }) => {
})
return (
-
+
{buttons}
diff --git a/rdmo/projects/assets/scss/interview.scss b/rdmo/projects/assets/scss/interview.scss
index 0b11c17ea..6cd678e37 100644
--- a/rdmo/projects/assets/scss/interview.scss
+++ b/rdmo/projects/assets/scss/interview.scss
@@ -165,8 +165,9 @@
}
}
- &:has(.react-select) {
+ &.select-input {
.buttons {
+ // in a select widget, additional space is reserved for the dropdown icon
position: absolute;
right: 62px;
margin-top: 2px;
@@ -174,6 +175,15 @@
}
}
+ &.textarea-input {
+ .buttons {
+ // in a textarea widget, the buttons are positioned at the bottom
+ top: auto;
+ height: 32px;
+ bottom: 0;
+ }
+ }
+
.buttons {
display: flex;
gap: 10px;
@@ -228,7 +238,7 @@
}
input[type="text"] {
- text-overflow:ellipsis;
+ text-overflow: ellipsis;
}
.radio,