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

Signed-off-by: Oliver Schramm <[email protected]>
  • Loading branch information
Elsensee authored and backportbot[bot] committed Nov 11, 2024
1 parent e3e555b commit 2ef9cf9
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 @@ -133,7 +133,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 @@ -749,7 +749,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);
}
.submit-button {
Expand Down

0 comments on commit 2ef9cf9

Please sign in to comment.