Skip to content

Commit

Permalink
Merge pull request #4558 from open-formulieren/fix/4519-max-size-for-…
Browse files Browse the repository at this point in the history
…formvariable-dropdowns

[#4519] Decrease horizontal space of form variable dropdowns
  • Loading branch information
sergei-maertens authored Jul 26, 2024
2 parents ae8c6a0 + 7782053 commit c04f0fa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const VariableSelection = ({
return (
<Select
id={id}
className="form-variable-dropdown"
name={name}
choices={choices}
allowBlank
Expand Down
1 change: 1 addition & 0 deletions src/openforms/scss/_vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ $django-hijack-yellow: #ffe761;
/* Dimensions */
--of-admin-input-field-size: 40em; // original: 20em;
--of-admin-checkbox-gap: 5px;
--of-admin-select-max-inline-size: 300px;

/* Tooltip */
--of-admin-tooltip-background-color: #fffeaa;
Expand Down
2 changes: 1 addition & 1 deletion src/openforms/scss/components/admin/_dsl-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// account for possibly long labels
select,
input {
max-width: 30em;
max-inline-size: var(--of-admin-select-max-inline-size);
}

label {
Expand Down
3 changes: 3 additions & 0 deletions src/openforms/scss/components/admin/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@

// Errors
@import './error-message';

// Form variables select-dropdown
@import './select';
3 changes: 3 additions & 0 deletions src/openforms/scss/components/admin/_select.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.form-variable-dropdown {
max-inline-size: var(--of-admin-select-max-inline-size);
}

0 comments on commit c04f0fa

Please sign in to comment.