Skip to content

Commit

Permalink
fix: Add click to entire user row.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chakravarthy7102 committed Nov 15, 2023
1 parent 0d6cd9b commit 17d6d50
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/static/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/css/main.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/bundle.js.map

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions src/ui/components/usersListTable/UsersListTable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$container-padding-v: 24px;

.users-list-table-container {
padding: $container-padding-v 34px;
padding: $container-padding-v 0px;
display: block;
width: 100%;
max-width: 100%;
Expand All @@ -42,7 +42,7 @@ $container-padding-v: 24px;
.users-list-table thead tr {
border-bottom: 1px solid var(--color-border);
th {
padding: 0 1em 24px 0;
padding: 0 1em 24px 34px;
font-weight: 500;
text-align: left;
width: 33%;
Expand All @@ -54,7 +54,7 @@ $container-padding-v: 24px;
td {
width: 33%;
max-width: 50%;
padding: 24px 1em 24px 0;
padding: 24px 1em 24px 34px;
}
&.empty-row {
td {
Expand All @@ -64,6 +64,10 @@ $container-padding-v: 24px;
}

.user-row {
&:hover {
cursor: pointer;
background: rgb(242, 247, 253);
}
.user-info {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -218,6 +222,7 @@ $container-padding-v: 24px;
display: flex;
justify-content: flex-end;
padding-top: $container-padding-v;
padding-right: 34px;
position: sticky;
left: 0px;
}
Expand Down
1 change: 1 addition & 0 deletions src/ui/components/usersListTable/UsersListTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ const UserTableRow: React.FC<
const { user, index, onSelect } = props;
return (
<tr
onClick={() => onSelect(user)}
key={index}
className="user-row">
<td>
Expand Down

0 comments on commit 17d6d50

Please sign in to comment.