Skip to content

Commit

Permalink
Add padding and max width so they don't stick to right screen border
Browse files Browse the repository at this point in the history
Also make them align
  • Loading branch information
Elsensee committed Nov 6, 2024
1 parent 39bd5df commit c6c4b4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/Questions/QuestionDate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ export default {

<style lang="scss" scoped>
.mx-datepicker {
width: 300px;
width: 100%;
max-width: 300px;

&.disabled {
inset-inline-start: -12px;
Expand Down
3 changes: 2 additions & 1 deletion src/components/Questions/QuestionFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ export default {
padding-inline: calc(3 * var(--default-grid-baseline)) var(--focus-offset);
padding-block: var(--focus-offset);
height: var(--default-clickable-area);
width: 300px;
width: 100%;
max-width: 300px;

label {
color: var(--color-text-maxcontrast);
Expand Down
2 changes: 1 addition & 1 deletion src/views/Submit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ export default {
form {
.question {
// Less padding needed as submit view does not have drag handles
padding-inline-start: var(--default-clickable-area);
padding-inline: var(--default-clickable-area);
}

.form-buttons {
Expand Down

0 comments on commit c6c4b4f

Please sign in to comment.