1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-10-31 00:17:42 +02:00
Files
focalboard/webapp/src/components/viewHeader/multiperson.scss
Scott Bishel ff3a8d2096 Implement Person filter and groupBy (#4414)
* implement person filter

* implement groupBy

* cleanup and fix adding filtered values

* fixes for existing unit tests

* add unit tests

* add unit tests

* fix lint issues

* lint, test fixes

* handle unknown and undefined users

* dont allow edit on person options

* add displaying Me, remove bots

* update i18n-extract

* update snapshots from merge, fix unit test failure, add unit test for 'Me'

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-01-17 12:02:54 -07:00

111 lines
2.5 KiB
SCSS

.MultiPerson {
display: flex;
align-items: center;
border-radius: 4px;
flex-wrap: wrap;
gap: 8px;
&.readonly {
overflow: hidden;
text-overflow: ellipsis;
min-width: unset;
}
.MultiPerson-item {
display: flex;
align-items: center;
img {
border-radius: 50px;
width: 24px;
height: 24px;
margin-right: 6px;
}
}
.react-select__menu {
background: rgba(var(--center-channel-bg-rgb), 1);
box-shadow: var(--elevation-4);
border: 1px solid rgba(var(--center-channel-color-rgb), 0.16);
border-radius: 4px;
}
.react-select__single-value {
margin: 0;
position: relative;
top: 0;
max-width: 100%;
}
.react-select__value-container--is-multi {
gap: 4px;
display: inline-flex;
.react-select__multi-value__label {
padding-left: 4px;
}
.react-select__multi-value {
background: rgba(var(--center-channel-color-rgb), 0.08);
border-radius: 24px;
display: inline-flex;
color: rgb(var(--center-channel-color-rgb));
margin: 0;
align-items: center;
.MultiPerson-item,
.react-select__multi-value__label {
color: inherit;
}
}
}
.react-select__multi-value__remove {
font-size: 18px;
color: rgba(var(--center-channel-color-rgb), 0.56);
margin: 6px;
border-radius: 100%;
margin-left: 0;
padding: 0;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
&:hover {
background: rgba(var(--center-channel-color-rgb), 0.26);
}
}
.react-select__option {
display: flex;
align-items: center;
height: 40px;
padding: 0 40px 0 20px;
&:hover {
background: rgba(var(--center-channel-color-rgb), 0.08);
}
&:active {
background: rgba(var(--button-bg-rgb), 0.08);
}
&.react-select__option--is-selected {
background: rgba(var(--button-bg-rgb), 0.08);
color: rgba(var(--center-channel-color-rgb), 1);
}
.MultiPerson-item {
img {
margin-right: 12px;
}
}
}
.react-select__menu-list {
border: 0;
}
}