Skip to content

Commit

Permalink
Merge pull request #2400 from Elsensee/fix-submit-css
Browse files Browse the repository at this point in the history
Add padding and max width so they don't stick to right screen border
  • Loading branch information
Chartman123 authored Nov 11, 2024
2 parents bb6d4b4 + b46f7ca commit ec712fc
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 ec712fc

Please sign in to comment.