fix typo noteSelf results and shortened pubkey for unknown contacts

pull/2154/head
Audric Ackermann 3 years ago
parent 845e6048c4
commit 5b6d0d25f5
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -348,7 +348,7 @@
min-width: 0; min-width: 0;
font-size: 16px; font-size: 16px;
line-height: 24px; line-height: 24px;
font-weight: 300; font-weight: 400;
color: var(--color-text); color: var(--color-text);
// width of avatar (28px) and our 6px left margin // width of avatar (28px) and our 6px left margin

@ -277,7 +277,7 @@ textarea {
&-text { &-text {
@include session-color-subtle(var(--color-text)); @include session-color-subtle(var(--color-text));
font-weight: 300; font-weight: 400;
font-size: $session-font-sm; font-size: $session-font-sm;
line-height: $session-font-sm; line-height: $session-font-sm;
} }

@ -2,7 +2,7 @@ import React from 'react';
import classNames from 'classnames'; import classNames from 'classnames';
import { Emojify } from './Emojify'; import { Emojify } from './Emojify';
import { useConversationUsername } from '../../hooks/useParamSelector'; import { useConversationUsernameOrShorten } from '../../hooks/useParamSelector';
type Props = { type Props = {
pubkey: string; pubkey: string;
@ -18,7 +18,7 @@ export const ContactName = (props: Props) => {
const { pubkey, name, profileName, module, boldProfileName, compact, shouldShowPubkey } = props; const { pubkey, name, profileName, module, boldProfileName, compact, shouldShowPubkey } = props;
const prefix = module ? module : 'module-contact-name'; const prefix = module ? module : 'module-contact-name';
const convoName = useConversationUsername(pubkey); const convoName = useConversationUsernameOrShorten(pubkey);
const shouldShowProfile = Boolean(convoName || profileName || name); const shouldShowProfile = Boolean(convoName || profileName || name);
const styles = (boldProfileName const styles = (boldProfileName

@ -101,7 +101,7 @@ const ConversationHeader = (props: { source: string; conversationId: string }) =
return ( return (
<StyledConversationTitleResults> <StyledConversationTitleResults>
<StyledMessageResultsHeaderName> <StyledMessageResultsHeaderName>
<ContactName pubkey={conversationId} shouldShowPubkey={false} boldProfileName={true} /> <ContactName pubkey={conversationId} shouldShowPubkey={false} boldProfileName={false} />
</StyledMessageResultsHeaderName> </StyledMessageResultsHeaderName>
</StyledConversationTitleResults> </StyledConversationTitleResults>
); );
@ -109,7 +109,7 @@ const ConversationHeader = (props: { source: string; conversationId: string }) =
return ( return (
<StyledConversationTitleResults> <StyledConversationTitleResults>
<FromName source={source} conversationId={conversationId} />; <FromName source={source} conversationId={conversationId} />
</StyledConversationTitleResults> </StyledConversationTitleResults>
); );
}; };
@ -203,6 +203,7 @@ export const MessageSearchResult = (props: MessageResultProps) => {
if (!source && !destination) { if (!source && !destination) {
return null; return null;
} }
// tslint:disable: use-simple-attributes
return ( return (
<StyledSearchResulsts <StyledSearchResulsts

Loading…
Cancel
Save