Emoji spacing & message highlight formatting

pull/839/head
Vincent 5 years ago
parent 2101abb911
commit cf0b9e45fa

@ -614,7 +614,9 @@ class LokiAppDotNetServerAPI {
`serverRequest ${mode} error`, `serverRequest ${mode} error`,
e.code, e.code,
e.message, e.message,
`json: ${txtResponse}`, 'attempting connection to', url `json: ${txtResponse}`,
'attempting connection to',
url
); );
} else { } else {
log.info( log.info(

@ -494,7 +494,6 @@ window.shortenPubkey = pubkey => `(...${pubkey.substring(pubkey.length - 6)})`;
window.pubkeyPattern = /@[a-fA-F0-9]{64,66}\b/g; window.pubkeyPattern = /@[a-fA-F0-9]{64,66}\b/g;
// TODO: activate SealedSender once it is ready on all platforms // TODO: activate SealedSender once it is ready on all platforms
window.lokiFeatureFlags = { window.lokiFeatureFlags = {
multiDeviceUnpairing: true, multiDeviceUnpairing: true,

@ -115,7 +115,6 @@ $main-view-header-height: 85px;
$session-left-pane-width: 300px; $session-left-pane-width: 300px;
$session-left-pane-sections-container-width: 80px; $session-left-pane-sections-container-width: 80px;
div.spacer-sm { div.spacer-sm {
height: $session-margin-sm; height: $session-margin-sm;
} }
@ -135,9 +134,8 @@ div.spacer-lg {
color: rgba($color, 0.6); color: rgba($color, 0.6);
} }
// Blur for modals // Blur for modals
.loki-dialog ~ .index.inbox{ .loki-dialog ~ .index.inbox {
filter: blur(1px); filter: blur(1px);
transition: filter 0.1s; transition: filter 0.1s;
} }
@ -232,7 +230,7 @@ $session_message-container-border-radius: 5px;
pointer-events: none; pointer-events: none;
} }
.overlay { .overlay {
display: block !important; display: flex !important;
z-index: 1; z-index: 1;
} }
@ -580,12 +578,15 @@ label {
.message-selection-overlay { .message-selection-overlay {
display: none; display: none;
position: absolute; position: absolute;
right: $session-margin-sm; left: 0px;
left: $session-margin-md; right: 0px;
margin: 0px $session-margin-sm;
align-items: center;
justify-content: space-between;
height: 48px;
.close-button { .close-button {
float: left; float: left;
margin: 17px 0px 0px 0px;
} }
} }
.message-selection-overlay div[role='button'] { .message-selection-overlay div[role='button'] {
@ -594,7 +595,6 @@ label {
.message-selection-overlay .button-group { .message-selection-overlay .button-group {
float: right; float: right;
margin-top: 13.5px;
} }
.hidden { .hidden {
@ -1293,7 +1293,15 @@ label {
.module-message { .module-message {
font-family: 'SF Pro Text'; font-family: 'SF Pro Text';
border-radius: 5px; border-radius: 5px;
&__text--incoming {
/* Add padding to large emojis in chat */
img.emoji.jumbo {
margin: $session-margin-sm 0px;
}
}
} }
} }
.bottom-bar { .bottom-bar {
@ -1770,8 +1778,7 @@ input {
} }
} }
.invite-friends-container { .invite-friends-container {
height: $session-icon-size-lg; height: $session-icon-size-lg;
width: $session-icon-size-lg; width: $session-icon-size-lg;
} }

@ -19,7 +19,8 @@
margin: auto; margin: auto;
} }
.session-icon-button, .invite-friends-container { .session-icon-button,
.invite-friends-container {
margin: 0 $session-margin-md; margin: 0 $session-margin-md;
} }
} }

@ -550,11 +550,11 @@ $session-compose-margin: 20px;
} }
&.active { &.active {
background-color: $session-shade-9; background-color: $session-shade-7;
} }
&:hover { &:hover {
background-color: $session-shade-7; background-color: $session-shade-5;
} }
&__buttons { &__buttons {

@ -2,7 +2,10 @@ import React from 'react';
import { SessionModal } from '../session/SessionModal'; import { SessionModal } from '../session/SessionModal';
import { SessionButton } from '../session/SessionButton'; import { SessionButton } from '../session/SessionButton';
import { ContactType, SessionMemberListItem } from '../session/SessionMemberListItem'; import {
ContactType,
SessionMemberListItem,
} from '../session/SessionMemberListItem';
interface Props { interface Props {
friendList: Array<any>; friendList: Array<any>;
@ -53,7 +56,6 @@ export class InviteFriendsDialog extends React.Component<Props, State> {
} }
public render() { public render() {
const titleText = `${window.i18n('addingFriends')} ${this.props.chatName}`; const titleText = `${window.i18n('addingFriends')} ${this.props.chatName}`;
const cancelText = window.i18n('cancel'); const cancelText = window.i18n('cancel');
const okText = window.i18n('ok'); const okText = window.i18n('ok');
@ -68,9 +70,7 @@ export class InviteFriendsDialog extends React.Component<Props, State> {
> >
<div className="spacer-lg" /> <div className="spacer-lg" />
<div className="friend-selection-list"> <div className="friend-selection-list">{this.renderMemberList()}</div>
{this.renderMemberList()}
</div>
{hasFriends ? null : ( {hasFriends ? null : (
<> <>
<div className="spacer-lg" /> <div className="spacer-lg" />
@ -154,13 +154,6 @@ export class InviteFriendsDialog extends React.Component<Props, State> {
private closeDialog() { private closeDialog() {
window.removeEventListener('keyup', this.onKeyUp); window.removeEventListener('keyup', this.onKeyUp);
console.log(this.props.onClose);
console.log(this.props.onClose);
console.log(this.props.onClose);
console.log(this.props.onClose);
this.props.onClose(); this.props.onClose();
} }
} }

@ -76,8 +76,6 @@ export class LeftPaneSettingSection extends React.Component<any, State> {
> >
<div> <div>
<strong>{item.title}</strong> <strong>{item.title}</strong>
<br />
<span className="text-subtle">{item.description}</span>
</div> </div>
<div> <div>
@ -181,31 +179,26 @@ export class LeftPaneSettingSection extends React.Component<any, State> {
{ {
id: SessionSettingCategory.Appearance, id: SessionSettingCategory.Appearance,
title: window.i18n('appearanceSettingsTitle'), title: window.i18n('appearanceSettingsTitle'),
description: window.i18n('appearanceSettingsDescription'),
hidden: false, hidden: false,
}, },
{ {
id: SessionSettingCategory.Privacy, id: SessionSettingCategory.Privacy,
title: window.i18n('privacySettingsTitle'), title: window.i18n('privacySettingsTitle'),
description: window.i18n('privacySettingsDescription'),
hidden: false, hidden: false,
}, },
{ {
id: SessionSettingCategory.Permissions, id: SessionSettingCategory.Permissions,
title: window.i18n('permissionSettingsTitle'), title: window.i18n('permissionSettingsTitle'),
description: window.i18n('permissionSettingsDescription'),
hidden: true, hidden: true,
}, },
{ {
id: SessionSettingCategory.Notifications, id: SessionSettingCategory.Notifications,
title: window.i18n('notificationSettingsTitle'), title: window.i18n('notificationSettingsTitle'),
description: window.i18n('notificationSettingsDescription'),
hidden: false, hidden: false,
}, },
{ {
id: SessionSettingCategory.Devices, id: SessionSettingCategory.Devices,
title: window.i18n('devicesSettingsTitle'), title: window.i18n('devicesSettingsTitle'),
description: window.i18n('devicesSettingsDescription'),
}, },
]; ];
} }

@ -54,16 +54,15 @@ export class SessionChannelSettings extends React.Component<Props, any> {
setTimeout(() => { setTimeout(() => {
this.getMediaGalleryProps() this.getMediaGalleryProps()
.then(({ documents, media, onItemClick }) => { .then(({ documents, media, onItemClick }) => {
this.setState({ this.setState({
documents, documents,
media, media,
onItemClick, onItemClick,
}); });
}) })
.ignore(); .ignore();
}, mediaScanInterval); }, mediaScanInterval);
} }
public async getMediaGalleryProps() { public async getMediaGalleryProps() {
@ -265,7 +264,7 @@ export class SessionChannelSettings extends React.Component<Props, any> {
conversationType="group" conversationType="group"
size={80} size={80}
/> />
<div className="invite-friends-container"> <div className="invite-friends-container">
{shouldShowInviteFriends && ( {shouldShowInviteFriends && (
<SessionIconButton <SessionIconButton
@ -275,8 +274,6 @@ export class SessionChannelSettings extends React.Component<Props, any> {
/> />
)} )}
</div> </div>
</div> </div>
); );
} }

Loading…
Cancel
Save