Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3400376
D3165.id9631.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3165.id9631.diff
View Options
diff --git a/web/chat/chat-thread-list-item-menu.react.js b/web/chat/chat-thread-list-item-menu.react.js
--- a/web/chat/chat-thread-list-item-menu.react.js
+++ b/web/chat/chat-thread-list-item-menu.react.js
@@ -23,8 +23,10 @@
type Props = {
+threadInfo: ThreadInfo,
+mostRecentNonLocalMessage: ?string,
+ +renderStyle?: 'chat' | 'thread',
};
function ChatThreadListItemMenu(props: Props): React.Node {
+ const { renderStyle = 'chat' } = props;
const [menuVisible, setMenuVisible] = React.useState(false);
const toggleMenu = React.useCallback(() => {
@@ -70,10 +72,12 @@
const toggleUnreadStatusButtonText = `Mark as ${
threadInfo.currentUser.unread ? 'read' : 'unread'
}`;
+
+ const menuIconSize = renderStyle === 'chat' ? 24 : 16;
return (
<div className={css.menu} onMouseLeave={hideMenu}>
<button onClick={toggleMenu}>
- <SWMansionIcon icon="menu-vertical" size={24} />
+ <SWMansionIcon icon="menu-vertical" size={menuIconSize} />
</button>
<div
className={classNames(css.menuContent, {
diff --git a/web/chat/chat-thread-list-sidebar.react.js b/web/chat/chat-thread-list-sidebar.react.js
--- a/web/chat/chat-thread-list-sidebar.react.js
+++ b/web/chat/chat-thread-list-sidebar.react.js
@@ -29,6 +29,7 @@
<ChatThreadListItemMenu
threadInfo={threadInfo}
mostRecentNonLocalMessage={mostRecentNonLocalMessage}
+ renderStyle="thread"
/>
</div>
);
diff --git a/web/chat/chat-thread-list.css b/web/chat/chat-thread-list.css
--- a/web/chat/chat-thread-list.css
+++ b/web/chat/chat-thread-list.css
@@ -152,7 +152,8 @@
color: var(--thread-color-read);
border: none;
cursor: pointer;
- align-self: flex-start;
+ display: flex;
+ align-items: center;
}
.menu > button:focus {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 7:10 AM (18 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2610358
Default Alt Text
D3165.id9631.diff (1 KB)
Attached To
Mode
D3165: [web] [fix] arrows touch per IRL chat with ashoat
Attached
Detach File
Event Timeline
Log In to Comment