diff --git a/client/src/components/AddToGroupModal/index.jsx b/client/src/components/AddToGroupModal/index.jsx index 0b94c7a..9ecaab5 100644 --- a/client/src/components/AddToGroupModal/index.jsx +++ b/client/src/components/AddToGroupModal/index.jsx @@ -154,66 +154,76 @@ export default function AddToGroupModal({ onCancel, updateUser, user }) { overlayClassName={style.overlay} >

Add to Group

-
- - { - setFilter(target.value); - setImmediate(() => target.focus()); - }} - placeholder="Search or create group" - value={filter} - disabled={loadingGroups} - /> - -
-

- My groups{loadingGroups && " (Loading...)"} -

-
- {!loadingGroups && - myGroups - .filter((g) => g.name.toLowerCase().includes(filter.toLowerCase())) - .map((g) => ( - switchSelected(g)} - /> - ))} -
- {myGroups.filter((g) => - g.name.toLowerCase().includes(filter.toLowerCase()) - ).length === 0 && - !loadingGroups &&
No results found
} -

- Other Groups{loadingGroups && " (Loading...)"} -

- {!loadingGroups && - otherGroups - .filter((g) => g.name.toLowerCase().includes(filter.toLowerCase())) - .map((g) => ( - switchSelected(g)} - /> - ))} +
+ + { + setFilter(target.value); + setImmediate(() => target.focus()); + }} + placeholder="Search or create group" + value={filter} + disabled={loadingGroups} + /> + +
+

+ My groups{loadingGroups && " (Loading...)"} +

+
+ {!loadingGroups && + myGroups + .filter((g) => + g.name.toLowerCase().includes(filter.toLowerCase()) + ) + .map((g) => ( + switchSelected(g)} + /> + ))} +
+ {myGroups.filter((g) => + g.name.toLowerCase().includes(filter.toLowerCase()) + ).length === 0 && + !loadingGroups && ( +
No results found
+ )} +

+ Other Groups{loadingGroups && " (Loading...)"} +

+
+ {!loadingGroups && + otherGroups + .filter((g) => + g.name.toLowerCase().includes(filter.toLowerCase()) + ) + .map((g) => ( + switchSelected(g)} + /> + ))} +
+ {otherGroups.filter((g) => + g.name.toLowerCase().includes(filter.toLowerCase()) + ).length === 0 && + !loadingGroups && ( +
No results found
+ )}
- {otherGroups.filter((g) => - g.name.toLowerCase().includes(filter.toLowerCase()) - ).length === 0 && - !loadingGroups &&
No results found
}
-

General

-
- { - setLocalUser({ - ...localUser, - firstName: target.value, - }); - setImmediate(() => target.focus()); - }} - value={localUser.firstName} - /> - { - setLocalUser({ - ...localUser, - lastName: target.value, - }); - setImmediate(() => target.focus()); - }} - value={localUser.lastName} - /> - { - setLocalUser({ - ...localUser, - title: { - id: localUser.title.id, - value: target.value, - }, - }); - setImmediate(() => target.focus()); - }} - value={localUser.title.value} - /> - { - setLocalUser({ - ...localUser, - company: { - id: localUser.company.id, - value: target.value, - }, - }); - setImmediate(() => target.focus()); - }} - value={localUser.company.value} - /> - { - setLocalUser({ - ...localUser, - location: { - id: localUser.location.id, - value: target.value, - }, - }); - setImmediate(() => target.focus()); - }} - value={localUser.location.value} - /> -
-

Skills

-
- - {localUser.skills - .filter((item) => !item.isDeleted) - .map((item) => ( - { - deleteSkill(item.externalId); - }} - /> - ))} -
-

Achievements

-
- {localUser.achievements.length > 0 && - localUser.achievements.map((value, key) => ( - - ))} - {localUser.achievements.length === 0 && ( - - {"This user has no achievements"} - - )} -
-

Custom attributes

-
- {localUser.companyAttributes.map((attr, key) => ( +
+

General

+
{ setLocalUser({ ...localUser, - companyAttributes: localUser.companyAttributes.map((el) => - el.id === attr.id ? { ...el, value: target.value } : el - ), + firstName: target.value, }); setImmediate(() => target.focus()); }} - value={localUser.companyAttributes[key].value} + value={localUser.firstName} /> - ))} + { + setLocalUser({ + ...localUser, + lastName: target.value, + }); + setImmediate(() => target.focus()); + }} + value={localUser.lastName} + /> + { + setLocalUser({ + ...localUser, + title: { + id: localUser.title.id, + value: target.value, + }, + }); + setImmediate(() => target.focus()); + }} + value={localUser.title.value} + /> + { + setLocalUser({ + ...localUser, + company: { + id: localUser.company.id, + value: target.value, + }, + }); + setImmediate(() => target.focus()); + }} + value={localUser.company.value} + /> + { + setLocalUser({ + ...localUser, + location: { + id: localUser.location.id, + value: target.value, + }, + }); + setImmediate(() => target.focus()); + }} + value={localUser.location.value} + /> +
+

Skills

+
+ + {localUser.skills + .filter((item) => !item.isDeleted) + .map((item) => ( + { + deleteSkill(item.externalId); + }} + /> + ))} +
+

Achievements

+
+ {localUser.achievements.length > 0 && + localUser.achievements.map((value, key) => ( + + ))} + {localUser.achievements.length === 0 && ( + + {"This user has no achievements"} + + )} +
+

Custom attributes

+
+ {localUser.companyAttributes.map((attr, key) => ( + { + setLocalUser({ + ...localUser, + companyAttributes: localUser.companyAttributes.map((el) => + el.id === attr.id ? { ...el, value: target.value } : el + ), + }); + setImmediate(() => target.focus()); + }} + value={localUser.companyAttributes[key].value} + /> + ))} +
+
-
); diff --git a/client/src/components/EditProfileModal/style.module.scss b/client/src/components/EditProfileModal/style.module.scss index 5a94a64..b28f2a6 100644 --- a/client/src/components/EditProfileModal/style.module.scss +++ b/client/src/components/EditProfileModal/style.module.scss @@ -2,9 +2,6 @@ .container { display: flex; - height: 791px; - max-height: 791px; - overflow-y: auto; } .editor { @@ -37,6 +34,18 @@ .header { align-items: center; display: flex; + margin-bottom: 20px; +} + +.body { + max-height: calc(95vh - 102px); + padding: 0 20px; + margin: 0 -20px; + overflow-y: auto; + + h3:first-child { + margin-top: 0; + } } .input { @@ -63,8 +72,8 @@ .companyAttributes { margin: 0 -20px; - height: 80px; - overflow-y: auto; + // height: 80px; + // overflow-y: auto; } .pillGroup { diff --git a/client/src/components/ProfileCard/profileCard.module.css b/client/src/components/ProfileCard/profileCard.module.css index e68d88c..b430565 100644 --- a/client/src/components/ProfileCard/profileCard.module.css +++ b/client/src/components/ProfileCard/profileCard.module.css @@ -23,6 +23,7 @@ border-radius: 8px 0 0 8px; border-right: 1px solid #eee; box-shadow: none; + max-height: calc(95vh - 20px); margin: -30px; margin-right: 0; padding-left: 10px; @@ -145,6 +146,8 @@ align-self: flex-end; border-top: 1px solid gray1_025; min-height: 97px; + overflow-y: auto; + overflow-x: hidden; width: 100%; } diff --git a/client/src/components/editFiltersPopup/index.js b/client/src/components/editFiltersPopup/index.js index 87871e8..59c14b0 100644 --- a/client/src/components/editFiltersPopup/index.js +++ b/client/src/components/editFiltersPopup/index.js @@ -111,15 +111,17 @@ export default function EditFiltersPopup({ onCancel, onDone }) {
Manage Filters
-
- -
+
+
+ +
+
{sections.map((section, index) => { const filters = filterGroups[section]; return ( @@ -200,7 +202,7 @@ function PopupSection({ title, filters, onFilterValueChange }) { return ( <> -
+
{filters.map((filter, index) => { return (