diff --git a/src/renderer/components/+catalog/catalog.module.css b/src/renderer/components/+catalog/catalog.module.css index 3b5100a297..fd730ae1e7 100644 --- a/src/renderer/components/+catalog/catalog.module.css +++ b/src/renderer/components/+catalog/catalog.module.css @@ -20,13 +20,30 @@ */ .list :global(.TableRow) { - .pinIcon { - @apply ml-5 opacity-0 mt-[-1px]; - transition: opacity 200ms; + .entityName { + position: relative; + width: min-content; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + padding-right: 24px; + + .pinIcon { + position: absolute; + right: 0; + opacity: 0; + transition: none; + + &:hover { + /* Drop styles defined for */ + background-color: transparent; + box-shadow: none; + } + } } &:hover .pinIcon { - @apply opacity-100; + opacity: 1; } } diff --git a/src/renderer/components/+catalog/catalog.tsx b/src/renderer/components/+catalog/catalog.tsx index 25e6b8c128..67851ed064 100644 --- a/src/renderer/components/+catalog/catalog.tsx +++ b/src/renderer/components/+catalog/catalog.tsx @@ -189,13 +189,13 @@ export class Catalog extends React.Component { renderName(item: CatalogEntityItem) { return ( - <> +
{item.name} { event.stopPropagation(); this.addToHotbar(item); }}/> - +
); }