Skip to content

Commit

Permalink
fix(GoalTableList): overflow goal owner name
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaEats committed Jul 30, 2024
1 parent b0dc889 commit 24d928c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 128 deletions.
128 changes: 4 additions & 124 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@sentry/nextjs": "7.99.0",
"@tanstack/react-query": "4.29.5",
"@tanstack/react-query-devtools": "4.29.6",
"@taskany/bricks": "5.40.3",
"@taskany/bricks": "5.41.1",
"@taskany/colors": "1.13.0",
"@taskany/icons": "2.0.7",
"@tippyjs/react": "4.2.6",
Expand Down
3 changes: 1 addition & 2 deletions src/components/GoalTableList/GoalTableList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
}

.Owner {
max-width: var(--table-cell-width);
white-space: nowrap;
max-width: calc(var(--table-cell-width) - var(--gap-m));
}

.RelativeTime {
Expand Down
9 changes: 8 additions & 1 deletion src/components/GoalTableList/GoalTableList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,14 @@ export const GoalTableList = <T extends NonNullable<DashboardGoal>>({
},
{
content: nullable(safeUserData(goal.owner), (user) => (
<User className={s.Owner} name={user.name} src={user.image} email={user.email} />
<User
className={s.Owner}
name={user.name}
src={user.image}
email={user.email}
ellipsis
title={user.name}
/>
)),
width: 172,
className: s.GoalTableColumnSecondary,
Expand Down

0 comments on commit 24d928c

Please sign in to comment.