Skip to content

Commit 2c0bc92

Browse files
authored
fix: trim long strings on extension list items (#1102)
1 parent 9c22c2d commit 2c0bc92

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

apps/extension/src/App/Settings/ConnectedSites.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ export const ConnectedSites: React.FC = ({}) => {
8484
"items-center text-base py-4 px-6"
8585
)}
8686
>
87-
<span>{site}</span>
87+
<span className="text-ellipsis overflow-hidden" title={site}>
88+
{site}
89+
</span>
8890
<span
8991
className="p-2 cursor-pointer hover:text-yellow -mr-2"
9092
onClick={() => handleRevokeConnection(site)}

packages/components/src/KeyListItem.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ export const KeyListItem = ({
5353
checked={isMainKey}
5454
/>
5555
</div>
56-
<label>{alias}</label>
56+
<label className="text-ellipsis overflow-hidden" title={alias}>
57+
{alias}
58+
</label>
5759
<DropdownMenu
5860
id={alias}
5961
align="right"

0 commit comments

Comments
 (0)