Skip to content

Commit

Permalink
Truncate too long links in the profile, like Nostr
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Nov 12, 2023
1 parent 82c5103 commit c166e59
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* Better accessibility outlines for column links in single column mode
* Fix a corner case bug where advanced UI in mobile mode has wrong order in column links
* Add profile link icons for Nostr, Bluesky and Threads
* Truncate too long links in the profile, like Nostr

### 1.8.0: 2023-10-29

Expand Down
9 changes: 9 additions & 0 deletions layout-multiple-columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -2231,6 +2231,15 @@ body.embed .detailed-status__meta .detailed-status__link .icon-retweet,
padding: 0;
}

/* Truncate too long links in the profile, like Nostr */
.layout-multiple-columns .account__header__bio .account__header__fields a span {
display: block;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.layout-multiple-columns .account__header__bio .account__header__fields dl::after {
content: '|';
order: 2;
Expand Down
9 changes: 9 additions & 0 deletions layout-single-column.css
Original file line number Diff line number Diff line change
Expand Up @@ -2272,6 +2272,15 @@ body.embed .detailed-status__meta .detailed-status__link .icon-retweet,
padding: 0;
}

/* Truncate too long links in the profile, like Nostr */
.layout-single-column .account__header__bio .account__header__fields a span {
display: block;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.layout-single-column .account__header__bio .account__header__fields dl::after {
content: '|';
order: 2;
Expand Down

0 comments on commit c166e59

Please sign in to comment.