Skip to content

Commit

Permalink
Merge pull request #152 from element-hq/quenting/action-input-min-width
Browse files Browse the repository at this point in the history
Fix the action input overflowing of small containers
  • Loading branch information
sandhose authored Feb 27, 2024
2 parents b9b4cc5 + 70a6b6a commit db837bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Form/Controls/Action/Action.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ limitations under the License.
.control {
flex: 1;
padding-inline-end: var(--cpd-space-12x) !important;

/* From the flexbox spec:
* "By default, flex items won’t shrink below their minimum content size"
* This allows the element to shrink lower than its natural default size.
*/
min-inline-size: 0;
}

.action {
Expand Down

0 comments on commit db837bd

Please sign in to comment.