Skip to content

Commit ec712fc

Browse files
authored
Merge pull request #2400 from Elsensee/fix-submit-css
Add padding and max width so they don't stick to right screen border
2 parents bb6d4b4 + b46f7ca commit ec712fc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/components/Questions/QuestionDate.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ export default {
129129

130130
<style lang="scss" scoped>
131131
.mx-datepicker {
132-
width: 300px;
132+
width: 100%;
133+
max-width: 300px;
133134
134135
&.disabled {
135136
inset-inline-start: -12px;

src/components/Questions/QuestionFile.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ export default {
435435
padding-inline: calc(3 * var(--default-grid-baseline)) var(--focus-offset);
436436
padding-block: var(--focus-offset);
437437
height: var(--default-clickable-area);
438-
width: 300px;
438+
width: 100%;
439+
max-width: 300px;
439440
440441
label {
441442
color: var(--color-text-maxcontrast);

src/views/Submit.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ export default {
808808
form {
809809
.question {
810810
// Less padding needed as submit view does not have drag handles
811-
padding-inline-start: var(--default-clickable-area);
811+
padding-inline: var(--default-clickable-area);
812812
}
813813
814814
.form-buttons {

0 commit comments

Comments
 (0)