Skip to content

Commit

Permalink
Truncate long title in breadcrumbs with ellipsis
Browse files Browse the repository at this point in the history
We can still see the full title at the top of the issue.
  • Loading branch information
rudolfs committed Dec 2, 2024
1 parent cd0bc9c commit 52c25a9
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions src/views/repo/Issue.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -297,25 +297,29 @@

<Layout>
{#snippet breadcrumbs()}
<Link route={{ resource: "home" }}>
<NodeId
publicKey={config.publicKey}
alias={config.alias}
styleFontFamily="var(--font-family-sans-serif)"
styleFontSize="var(--font-size-tiny)" />
</Link>
<Link route={{ resource: "repo.issues", rid: repo.rid, status: "open" }}>
<div class="global-flex">
<Icon name="chevron-right" />
{project.data.name}
<div class="global-flex txt-overflow">
<Link route={{ resource: "home" }}>
<NodeId
publicKey={config.publicKey}
alias={config.alias}
styleFontFamily="var(--font-family-sans-serif)"
styleFontSize="var(--font-size-tiny)" />
</Link>
<Link route={{ resource: "repo.issues", rid: repo.rid, status: "open" }}>
<div class="global-flex">
<Icon name="chevron-right" />
{project.data.name}
</div>
</Link>
<Icon name="chevron-right" />
<Link route={{ resource: "repo.issues", rid: repo.rid, status: "open" }}>
Issues
</Link>
<Icon name="chevron-right" />
<div class="txt-overflow">
{issue.title}
</div>
</Link>
<Icon name="chevron-right" />
<Link route={{ resource: "repo.issues", rid: repo.rid, status: "open" }}>
Issues
</Link>
<Icon name="chevron-right" />
{issue.title}
</div>
{/snippet}

{#snippet headerCenter()}
Expand Down

0 comments on commit 52c25a9

Please sign in to comment.