-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update User Management styling to align with design (#515)
### Summary & Motivation Update User Management page to align with the design specifications. - Move profile menu item to a new separate `profileMenuItem` component - Set height on menu items to match design, and set width for smooth open menu animation - Switch Profile menu from icon to Avatar image to match design - Format user action menu with consistent height and red text for delete item to match design - Only show delete icon when hovering over user row - Ensure rounded corners of search textbox align with other elements and match design - Add minimal padding between main content and side menu to prevent selected borders from being cropped - Disable sorting on Date, Last seen, and Role - Ensure the background on the user management page covers the full height of the screen - Ensure the header and pagination on the user management page remain visible while scrolling ### Checklist - [x] I have added a Label to the pull-request - [x] I have added tests, and done manual regression tests - [x] I have updated the documentation, if necessary
- Loading branch information
Showing
8 changed files
with
63 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
application/account-management/WebApp/pages/admin/users/-components/profileMenuItem.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import avatarUrl from "../../images/avatar.png"; | ||
|
||
const ProfileMenuItem: React.FC = () => { | ||
const name = "Mary Doe"; | ||
const title = "DevOps Engineer"; | ||
|
||
return ( | ||
<div className="flex flex-row items-center gap-2"> | ||
<div> | ||
<img src={avatarUrl} alt={name} className="mr-2 w-10 h-10 rounded-full bg-transparent" /> | ||
</div> | ||
<div className="flex flex-col"> | ||
<h2>{name}</h2> | ||
<p className=" text-slate-500 text-sm font-normal">{title}</p> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ProfileMenuItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters