Page MenuHomePhabricator

D3878.id12120.diff
No OneTemporary

D3878.id12120.diff

diff --git a/web/chat/inline-sidebar.css b/web/chat/inline-sidebar.css
--- a/web/chat/inline-sidebar.css
+++ b/web/chat/inline-sidebar.css
@@ -19,15 +19,3 @@
div.unread {
font-weight: bold;
}
-div.centerContainer {
- justify-content: center;
-}
-div.nonViewerMessageBoxContainer {
- justify-content: flex-start;
-}
-div.viewerMessageBoxContainer {
- justify-content: flex-end;
-}
-svg.inlineSidebarIcon {
- color: #666666;
-}
diff --git a/web/chat/inline-sidebar.react.js b/web/chat/inline-sidebar.react.js
--- a/web/chat/inline-sidebar.react.js
+++ b/web/chat/inline-sidebar.react.js
@@ -2,10 +2,6 @@
import classNames from 'classnames';
import * as React from 'react';
-import {
- CornerDownRight as CornerDownRightIcon,
- CornerDownLeft as CornerDownLeftIcon,
-} from 'react-feather';
import { relativeMemberInfoSelectorForMembersOfThread } from 'lib/selectors/user-selectors';
import { stringForUser } from 'lib/shared/user-utils';
@@ -25,23 +21,7 @@
const onClick = useOnClickThread(threadInfo);
- let viewerIcon, nonViewerIcon, alignStyle;
- if (props.positioning === 'right') {
- viewerIcon = (
- <CornerDownLeftIcon className={css.inlineSidebarIcon} size={18} />
- );
- alignStyle = css.viewerMessageBoxContainer;
- } else if (props.positioning === 'left') {
- nonViewerIcon = (
- <CornerDownRightIcon className={css.inlineSidebarIcon} size={18} />
- );
- alignStyle = css.nonViewerMessageBoxContainer;
- } else {
- nonViewerIcon = (
- <CornerDownRightIcon className={css.inlineSidebarIcon} size={18} />
- );
- alignStyle = css.centerContainer;
- }
+ let nonViewerIcon, alignStyle;
const unreadStyle = threadInfo.currentUser.unread ? css.unread : null;
const repliesCount = threadInfo.repliesCount || 1;
@@ -67,7 +47,6 @@
{sendersText}
{repliesText}
</div>
- {viewerIcon}
</div>
</div>
);

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 29, 4:40 AM (14 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2595826
Default Alt Text
D3878.id12120.diff (1 KB)

Event Timeline