Skip to content

Commit

Permalink
fix(APP-3261): Truncate long link descriptions on DAO dashboard (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barukimang authored Jul 9, 2024
1 parent f94c066 commit aed05ff
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/@aragon/ods-old/components/headers/headerDao.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {Link} from '../link';
import {ListItemLink} from '../listItem';

const DEFAULT_LINES_SHOWN = 2;
const DEFAULT_LINKS_SHOWN = 3;
const DEFAULT_LINKS_SHOWN = 2;
const DEFAULT_TRANSLATIONS = {
follow: 'Follow',
following: 'Following',
Expand Down Expand Up @@ -207,7 +207,12 @@ export const HeaderDao: React.FC<HeaderDaoProps> = ({
{links
?.slice(0, DEFAULT_LINKS_SHOWN)
?.map(({label, href}, index: number) => (
<Link {...{label, href}} external key={index} />
<Link
className="max-w-44"
{...{label, href}}
external
key={index}
/>
))}
</LinksWrapper>
<ActionContainer>
Expand Down

0 comments on commit aed05ff

Please sign in to comment.