Skip to content

Commit

Permalink
Fix 697 : Truncate labels on visualiser page (event-catalog#698)
Browse files Browse the repository at this point in the history
* Added truncate as class to BasicList to also visualise long service/event/domain names correctly on visualiser page.

* Create stale-jars-provide.md

---------

Co-authored-by: David Boyne <[email protected]>
  • Loading branch information
debae and boyney123 authored Aug 9, 2024
1 parent b054e8b commit dad4df7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/stale-jars-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eventcatalog/core": patch
---

fix(core): visualiser now truncates labels on sidebar
2 changes: 1 addition & 1 deletion src/components/Lists/BasicList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const BasicList = ({ title, items, emptyMessage, color = 'gray' }: Props) => {
className={`flex justify-between items-center w-full px-2 rounded-md font-normal ${item.active ? 'bg-purple-200 text-purple-800 ' : 'font-thin'}`}
href={item.href}
>
<span className="block">{item.label}</span>
<span className="block truncate !whitespace-normal">{item.label}</span>
{item.version && (
<span className="block text-sm bg-purple-100 p-0.5 px-1 text-gray-600 rounded-md font-light">
v{item.version}
Expand Down

0 comments on commit dad4df7

Please sign in to comment.