diff --git a/stylesheets/_modules.scss b/stylesheets/_modules.scss index c16e47031..d57a5111c 100644 --- a/stylesheets/_modules.scss +++ b/stylesheets/_modules.scss @@ -33,6 +33,10 @@ .module-contact-name.compact { display: block; + + span::after { + content: '\00a0'; + } } // Module: Message @@ -1242,7 +1246,7 @@ width: 90%; max-width: 700px; margin: 10px auto; - padding: 5px 20px; + padding: 5px 0px; border-radius: 4px; word-break: break-word; } @@ -1380,7 +1384,7 @@ .module-timer-notification__message { display: grid; - grid-template-columns: 20px auto 20px; + grid-template-columns: 40px auto 40px; font-size: 14px; line-height: 20px; letter-spacing: 0.3px; @@ -1389,7 +1393,6 @@ align-self: center; justify-self: center; display: flex; - flex-direction: column; align-items: center; justify-content: center; } diff --git a/ts/components/conversation/ContactName.tsx b/ts/components/conversation/ContactName.tsx index 39f69d4c9..ce6231f67 100644 --- a/ts/components/conversation/ContactName.tsx +++ b/ts/components/conversation/ContactName.tsx @@ -28,7 +28,8 @@ export class ContactName extends React.Component { const prefix = module ? module : 'module-contact-name'; const title = name ? name : phoneNumber; - const shouldShowProfile = Boolean(profileName && !name); + const shouldShowProfile = Boolean(profileName && !profileName); + const styles = (boldProfileName ? { fontWeight: 'bold', diff --git a/ts/components/conversation/TimerNotification.tsx b/ts/components/conversation/TimerNotification.tsx index 87f077669..301a0c759 100644 --- a/ts/components/conversation/TimerNotification.tsx +++ b/ts/components/conversation/TimerNotification.tsx @@ -21,7 +21,6 @@ export class TimerNotification extends React.Component { public renderContents() { const { i18n, - name, phoneNumber, profileName, timespan, @@ -32,23 +31,14 @@ export class TimerNotification extends React.Component { ? 'disabledDisappearingMessages' : 'theyChangedTheTimer'; + const recipient = profileName ?? phoneNumber; + switch (type) { case 'fromOther': return ( - , - timespan, - ]} - /> + <> + {i18n(changeKey, [recipient, timespan])} + ); case 'fromMe': return disabled diff --git a/ts/components/session/conversation/SessionConversation.tsx b/ts/components/session/conversation/SessionConversation.tsx index 77f70f6d4..9dcc70e5d 100644 --- a/ts/components/session/conversation/SessionConversation.tsx +++ b/ts/components/session/conversation/SessionConversation.tsx @@ -521,7 +521,6 @@ export class SessionConversation extends React.Component { console.log(`[header] HeaderProps:`, headerProps); console.log(`[header] Conv: `, conversation); - return headerProps; }