Skip to content

Commit

Permalink
Merge pull request #2406 from nextcloud/backport/2400/stable4
Browse files Browse the repository at this point in the history
[stable4] Add padding and max width so they don't stick to right screen border
  • Loading branch information
Chartman123 authored Nov 11, 2024
2 parents e3e555b + 2ef9cf9 commit c316d83
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 c316d83

Please sign in to comment.