mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Add ellipsis for long contact names
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
justify-content: center;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 24px;
|
||||
padding-inline: 24px;
|
||||
|
||||
&__name {
|
||||
@include button-reset();
|
||||
@@ -16,12 +17,21 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: baseline;
|
||||
max-width: 100%;
|
||||
|
||||
margin-top: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&__name__text {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
&__name__chevron {
|
||||
flex-shrink: 0;
|
||||
|
||||
display: inline-block;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
@@ -64,7 +74,6 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-block: 6px;
|
||||
padding-inline: 24px;
|
||||
width: 100%;
|
||||
|
||||
&:last-child {
|
||||
@@ -263,8 +272,7 @@
|
||||
}
|
||||
|
||||
&__divider {
|
||||
// Full width minus margin
|
||||
width: calc(100% - 48px);
|
||||
width: 100%;
|
||||
|
||||
border-style: solid;
|
||||
border-bottom: none;
|
||||
@@ -279,6 +287,5 @@
|
||||
}
|
||||
|
||||
margin-block: 8px 5px;
|
||||
margin-inline: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -247,7 +247,9 @@ export function ContactModal({
|
||||
toggleAboutContactModal(contact.id);
|
||||
}}
|
||||
>
|
||||
<UserText text={contact.title} />
|
||||
<div className="ContactModal__name__text">
|
||||
<UserText text={contact.title} />
|
||||
</div>
|
||||
<i className="ContactModal__name__chevron" />
|
||||
</button>
|
||||
{!contact.isMe && (
|
||||
|
||||
Reference in New Issue
Block a user