Skip to content

fix(APP-3261): Truncate long link descriptions dashboard #1381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading