mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
fix selected team names overflowing in vpp edit teams modal dropdown (#21710)
relates to #21700 This fixes an issue where the selected team names were overflowing in the dropdown in vpp edit teams modal. This makes it so they now wrap. **Before**  **After**  > NOTE: I'm not sure why the top padding in the dropdown is removed when the text wraps and still need to figure that part out but I wanted to get this in to unblock the release. - [x] Manual QA for all new/changed functionality
This commit is contained in:
parent
45f4825c0a
commit
1d7d84022c
2 changed files with 10 additions and 2 deletions
|
|
@ -209,7 +209,7 @@ const EditTeamsVppModal = ({
|
|||
showArrow
|
||||
tipContent={
|
||||
<div className={`${baseClass}__tooltip--all-teams`}>
|
||||
You can’t choose teams because you already have a VPP token
|
||||
You can't choose teams because you already have a VPP token
|
||||
assigned to all teams. First, edit teams for that VPP token to
|
||||
choose teams here.
|
||||
</div>
|
||||
|
|
@ -223,6 +223,7 @@ const EditTeamsVppModal = ({
|
|||
placeholder="Search teams"
|
||||
value={selectedValue}
|
||||
label="Teams"
|
||||
className={`${baseClass}__vpp-dropdown`}
|
||||
wrapperClassName={`${baseClass}__form-field--vpp-teams ${
|
||||
isDropdownDisabled ? `${baseClass}__form-field--disabled` : ""
|
||||
}`}
|
||||
|
|
@ -230,7 +231,7 @@ const EditTeamsVppModal = ({
|
|||
isDropdownDisabled ? undefined : (
|
||||
<>
|
||||
Each team can have only one VPP token. Teams that already
|
||||
have a VPP token won’t show up here.
|
||||
have a VPP token won't show up here.
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,13 @@
|
|||
.component__tooltip-wrapper__element {
|
||||
width: 100%; // default component style was causing the select box not to be full width
|
||||
}
|
||||
|
||||
// this is needed to wrap the selected team names in that are displayed
|
||||
// in the dropdown select box.
|
||||
.dropdown__select {
|
||||
text-wrap: wrap;
|
||||
}
|
||||
|
||||
// styles needed to make select look like figma design when disabled,
|
||||
// default styles in the Dropdown component were not enough
|
||||
&__form-field--disabled {
|
||||
|
|
|
|||
Loading…
Reference in a new issue