Skip to content

Commit

Permalink
add SearchableDropdown styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Nov 8, 2024
1 parent 859e60f commit c9b269a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ silverstripe-quickaddnew
What is it?
--------

A decorator for form fields that manage object relationships, to allow adding a new object on the fly through a dialog window. It can handle `has_one`,`has_many` or `many_many` relationships. At the moment it has been tested / works on `DropdownField`, `ListboxField` and `CheckboxSetField`. It works both in the CMS and in the frontend.
A decorator for form fields that manage object relationships, to allow adding a new object on the fly through a dialog window. It can handle `has_one`,`has_many` or `many_many` relationships. At the moment it has been tested / works on `DropdownField` (and `SearchableDropdownField`), `ListboxField` and `CheckboxSetField`. It works both in the CMS and in the frontend.

![screenshot](screenshot.png)

Expand Down
6 changes: 6 additions & 0 deletions client/css/quickaddnew.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
font-size: 0;
}

.cms .quickaddnew-field .ss-searchable-dropdown-field {
display: inline-block;
width: 437px;
}

.cms .quickaddnew-field .ss-searchable-dropdown-field,
.cms .quickaddnew-field .chzn-container,
.cms .quickaddnew-field .chosen-container {
max-width: min(437px, 60vw);
Expand Down

0 comments on commit c9b269a

Please sign in to comment.