@messenger-box/platform-browser 10.0.3-alpha.16 → 10.0.3-alpha.160

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/CHANGELOG.md +228 -0
  2. package/lib/components/InboxMessage/InboxDetails/index.d.ts +6 -1
  3. package/lib/components/InboxMessage/InboxDetails/index.d.ts.map +1 -1
  4. package/lib/components/InboxMessage/InboxDetails/index.js +10 -11
  5. package/lib/components/InboxMessage/InboxDetails/index.js.map +1 -1
  6. package/lib/components/InboxMessage/InboxSidebar/index.d.ts.map +1 -1
  7. package/lib/components/InboxMessage/InboxSidebar/index.js +23 -32
  8. package/lib/components/InboxMessage/InboxSidebar/index.js.map +1 -1
  9. package/lib/components/InboxMessage/Messages/index.d.ts.map +1 -1
  10. package/lib/components/InboxMessage/Messages/index.js +42 -81
  11. package/lib/components/InboxMessage/Messages/index.js.map +1 -1
  12. package/lib/components/InboxMessage/MessagesList/index.d.ts.map +1 -1
  13. package/lib/components/InboxMessage/MessagesList/index.js +53 -74
  14. package/lib/components/InboxMessage/MessagesList/index.js.map +1 -1
  15. package/lib/components/InboxMessage/Popover/index.d.ts +5 -1
  16. package/lib/components/InboxMessage/Popover/index.d.ts.map +1 -1
  17. package/lib/components/InboxMessage/Popover/index.js +8 -35
  18. package/lib/components/InboxMessage/Popover/index.js.map +1 -1
  19. package/lib/components/InboxMessage/UserModalContent/index.d.ts.map +1 -1
  20. package/lib/components/InboxMessage/UserModalContent/index.js +50 -47
  21. package/lib/components/InboxMessage/UserModalContent/index.js.map +1 -1
  22. package/lib/components/InboxMessage/index.d.ts.map +1 -1
  23. package/lib/components/InboxMessage/index.js +38 -70
  24. package/lib/components/InboxMessage/index.js.map +1 -1
  25. package/lib/components/channel_view/DirectChannelView.js.map +1 -1
  26. package/lib/components/channel_view/PublicChannelView.js.map +1 -1
  27. package/lib/components/dashboard/menu_header.d.ts.map +1 -1
  28. package/lib/components/dashboard/menu_header.js +38 -24
  29. package/lib/components/dashboard/menu_header.js.map +1 -1
  30. package/lib/components/dashboard/modals/direct_modal.d.ts +10 -8
  31. package/lib/components/dashboard/modals/direct_modal.d.ts.map +1 -1
  32. package/lib/components/dashboard/modals/direct_modal.js +59 -39
  33. package/lib/components/dashboard/modals/direct_modal.js.map +1 -1
  34. package/lib/components/dashboard/modals.d.ts +18 -6
  35. package/lib/components/dashboard/modals.d.ts.map +1 -1
  36. package/lib/components/dashboard/modals.js +60 -101
  37. package/lib/components/dashboard/modals.js.map +1 -1
  38. package/lib/components/messenger/avatar/index.d.ts.map +1 -1
  39. package/lib/components/messenger/index.d.ts.map +1 -1
  40. package/lib/components/messenger/index.js +45 -82
  41. package/lib/components/messenger/index.js.map +1 -1
  42. package/lib/components/messenger/messagesList/index.d.ts.map +1 -1
  43. package/lib/components/messenger/messagesList/index.js +174 -454
  44. package/lib/components/messenger/messagesList/index.js.map +1 -1
  45. package/lib/components/messenger/messagesList/messageBox.d.ts +0 -1
  46. package/lib/components/messenger/messagesList/messageBox.d.ts.map +1 -1
  47. package/lib/components/messenger/more_action/index.d.ts.map +1 -1
  48. package/lib/components/messenger/postMessage/postMessage.d.ts +7 -2
  49. package/lib/components/messenger/postMessage/postMessage.d.ts.map +1 -1
  50. package/lib/components/messenger/sidebarThreadList/index.d.ts.map +1 -1
  51. package/lib/components/messenger/threadSidebar/index.d.ts.map +1 -1
  52. package/lib/components/messenger/types/message.d.ts +11 -11
  53. package/lib/components/messenger/types/message.d.ts.map +1 -1
  54. package/lib/components/post/channel_intro_message/channel_intro_message.d.ts.map +1 -1
  55. package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts.map +1 -1
  56. package/lib/components/post/channel_view/channel_view.d.ts.map +1 -1
  57. package/lib/components/post/create_post/create_post.d.ts +10 -1
  58. package/lib/components/post/create_post/create_post.d.ts.map +1 -1
  59. package/lib/components/post/failed_post_options/failed_post_options.d.ts.map +1 -1
  60. package/lib/components/post/index.d.ts +5 -3
  61. package/lib/components/post/index.d.ts.map +1 -1
  62. package/lib/components/post/index.js +63 -97
  63. package/lib/components/post/index.js.map +1 -1
  64. package/lib/components/post/markdown/markdown.d.ts.map +1 -1
  65. package/lib/components/post/post/post.d.ts.map +1 -1
  66. package/lib/components/post/post_body/post_body.d.ts.map +1 -1
  67. package/lib/components/post/post_body_additional_content/post_body_additional_content.d.ts.map +1 -1
  68. package/lib/components/post/post_header/post_header.d.ts.map +1 -1
  69. package/lib/components/post/post_header/post_header_custom_status.d.ts.map +1 -1
  70. package/lib/components/post/post_info/post_info.d.ts.map +1 -1
  71. package/lib/components/post/post_list/post_list.d.ts.map +1 -1
  72. package/lib/components/post/post_list_row/post_list_row.d.ts.map +1 -1
  73. package/lib/components/post/post_list_virtualized/post_list_virtualized.d.ts.map +1 -1
  74. package/lib/components/post/post_markdown/post_markdown.d.ts.map +1 -1
  75. package/lib/components/post/post_message_view/post_message_view.d.ts.map +1 -1
  76. package/lib/components/post/post_pre_header/post_pre_header.d.ts.map +1 -1
  77. package/lib/components/post/post_profile_picture/post_profile_picture.d.ts.map +1 -1
  78. package/lib/components/post/profile_picture/profile_picture.d.ts.map +1 -1
  79. package/lib/components/post/show_more/show_more.d.ts.map +1 -1
  80. package/lib/components/post/suggestion/suggestion_box.d.ts.map +1 -1
  81. package/lib/components/post/textbox/textbox.d.ts.map +1 -1
  82. package/lib/components/post/threading/channel_threads/thread_footer/thread_footer.d.ts.map +1 -1
  83. package/lib/components/post/tutorial/menu_tutorial_tip.d.ts.map +1 -1
  84. package/lib/components/post/tutorial/tutorial_tip/tutorial_tip.d.ts.map +1 -1
  85. package/lib/components/post_view/post_attachment_container/post_attachment_container.d.ts.map +1 -1
  86. package/lib/components/status_icon.d.ts.map +1 -1
  87. package/lib/compute.js.map +1 -1
  88. package/lib/containers/Dashboard.d.ts.map +1 -1
  89. package/lib/containers/Dashboard.js +110 -124
  90. package/lib/containers/Dashboard.js.map +1 -1
  91. package/lib/containers/DashboardWithLoader.d.ts.map +1 -1
  92. package/lib/containers/DashboardWithLoader.js +10 -3
  93. package/lib/containers/DashboardWithLoader.js.map +1 -1
  94. package/lib/containers/Inbox.js.map +1 -1
  95. package/lib/containers/Messenger.js.map +1 -1
  96. package/lib/module.js.map +1 -1
  97. package/lib/utils/index.d.ts.map +1 -1
  98. package/lib/utils/index.js.map +1 -1
  99. package/lib/widgets/simple_tooltip/simple_tooltip.d.ts.map +1 -1
  100. package/package.json +5 -5
  101. package/src/components/InboxMessage/InboxDetails/index.tsx +13 -15
  102. package/src/components/InboxMessage/InboxSidebar/index.tsx +23 -33
  103. package/src/components/InboxMessage/Messages/index.tsx +57 -96
  104. package/src/components/InboxMessage/MessagesList/index.tsx +71 -82
  105. package/src/components/InboxMessage/Popover/index.tsx +14 -38
  106. package/src/components/InboxMessage/UserModalContent/index.tsx +41 -44
  107. package/src/components/InboxMessage/index.tsx +52 -67
  108. package/src/components/dashboard/menu_header.tsx +52 -45
  109. package/src/components/dashboard/modals/direct_modal.tsx +73 -40
  110. package/src/components/dashboard/modals.tsx +114 -105
  111. package/src/components/messenger/avatar/index.tsx +27 -13
  112. package/src/components/messenger/index.tsx +125 -160
  113. package/src/components/messenger/messagesList/index.tsx +288 -572
  114. package/src/components/messenger/messagesList/messageBox.tsx +45 -34
  115. package/src/components/messenger/more_action/index.tsx +16 -10
  116. package/src/components/messenger/postMessage/postMessage.tsx +28 -16
  117. package/src/components/messenger/sidebarThreadList/index.tsx +51 -177
  118. package/src/components/messenger/threadSidebar/index.tsx +88 -75
  119. package/src/components/messenger/types/message.ts +12 -11
  120. package/src/components/post/channel_view/channel_view.tsx +2 -2
  121. package/src/components/post/create_post/create_post.tsx +104 -195
  122. package/src/components/post/index.tsx +77 -98
  123. package/src/components/post/post_header/post_header_custom_status.tsx +7 -6
  124. package/src/components/post/post_header/style.ts +51 -51
  125. package/src/containers/Dashboard.tsx +169 -212
  126. package/src/containers/DashboardWithLoader.tsx +12 -4
  127. package/lib/components/InboxMessage/InboxDetails/style.d.ts +0 -2
  128. package/lib/components/InboxMessage/InboxDetails/style.d.ts.map +0 -1
  129. package/lib/components/InboxMessage/InboxDetails/style.js +0 -27
  130. package/lib/components/InboxMessage/InboxDetails/style.js.map +0 -1
  131. package/lib/components/InboxMessage/InboxSidebar/styles.d.ts +0 -2
  132. package/lib/components/InboxMessage/InboxSidebar/styles.d.ts.map +0 -1
  133. package/lib/components/InboxMessage/InboxSidebar/styles.js +0 -57
  134. package/lib/components/InboxMessage/InboxSidebar/styles.js.map +0 -1
  135. package/lib/components/InboxMessage/Messages/styles.d.ts +0 -81
  136. package/lib/components/InboxMessage/Messages/styles.d.ts.map +0 -1
  137. package/lib/components/InboxMessage/Messages/styles.js +0 -85
  138. package/lib/components/InboxMessage/Messages/styles.js.map +0 -1
  139. package/lib/components/InboxMessage/Popover/style.d.ts +0 -28
  140. package/lib/components/InboxMessage/Popover/style.d.ts.map +0 -1
  141. package/lib/components/InboxMessage/Popover/style.js +0 -27
  142. package/lib/components/InboxMessage/Popover/style.js.map +0 -1
  143. package/lib/components/InboxMessage/UserModalContent/style.d.ts +0 -2
  144. package/lib/components/InboxMessage/UserModalContent/style.d.ts.map +0 -1
  145. package/lib/components/InboxMessage/UserModalContent/style.js +0 -98
  146. package/lib/components/InboxMessage/UserModalContent/style.js.map +0 -1
  147. package/lib/components/InboxMessage/style.js +0 -189
  148. package/lib/components/InboxMessage/style.js.map +0 -1
  149. package/lib/components/messenger/avatar/style.d.ts +0 -2
  150. package/lib/components/messenger/avatar/style.d.ts.map +0 -1
  151. package/lib/components/messenger/messagesList/style.js +0 -446
  152. package/lib/components/messenger/messagesList/style.js.map +0 -1
  153. package/lib/components/messenger/more_action/index.js +0 -48
  154. package/lib/components/messenger/more_action/index.js.map +0 -1
  155. package/lib/components/messenger/more_action/style.d.ts +0 -2
  156. package/lib/components/messenger/more_action/style.d.ts.map +0 -1
  157. package/lib/components/messenger/more_action/style.js +0 -45
  158. package/lib/components/messenger/more_action/style.js.map +0 -1
  159. package/lib/components/post/style.js +0 -20101
  160. package/lib/components/post/style.js.map +0 -1
  161. package/lib/style.js +0 -400
  162. package/lib/style.js.map +0 -1
  163. package/src/components/InboxMessage/InboxDetails/style.ts +0 -27
  164. package/src/components/InboxMessage/InboxSidebar/styles.ts +0 -57
  165. package/src/components/InboxMessage/Messages/styles.ts +0 -85
  166. package/src/components/InboxMessage/Popover/style.ts +0 -27
  167. package/src/components/InboxMessage/UserModalContent/style.ts +0 -98
  168. package/src/components/messenger/avatar/style.ts +0 -86
  169. package/src/components/messenger/more_action/style.ts +0 -45
@@ -1,33 +1,26 @@
1
1
  import * as React from 'react';
2
- import { css } from '@emotion/css';
3
- import { styleSheet2 } from './style';
4
- import { AiOutlineSearch, AiOutlineStar, AiOutlineQuestionCircle } from 'react-icons/ai';
5
- import { RiPushpinLine } from 'react-icons/ri';
6
- import { BsAt, BsChevronDown } from 'react-icons/bs';
7
- import { IoBookmarkOutline } from 'react-icons/io5';
8
- import { Menu, Dropdown } from 'antd';
2
+ // import { AiOutlineSearch, AiOutlineStar, AiOutlineQuestionCircle } from 'react-icons/ai';
3
+ import { AiOutlineSearch } from '@react-icons/all-files/ai/AiOutlineSearch';
4
+ import { AiOutlineStar } from '@react-icons/all-files/ai/AiOutlineStar';
5
+ import { AiOutlineQuestionCircle } from '@react-icons/all-files/ai/AiOutlineQuestionCircle';
6
+ import { RiPushpinLine } from '@react-icons/all-files/ri/RiPushpinLine';
7
+ import { BsAt } from '@react-icons/all-files/bs/BsAt';
8
+ import { BsChevronDown } from '@react-icons/all-files/bs/BsChevronDown';
9
+ import { IoBookmarkOutline } from '@react-icons/all-files/io5/IoBookmarkOutline';
9
10
  import { useDeleteChannelMutation } from 'common/graphql';
10
11
  import { useNavigate, useLocation } from '@remix-run/react';
11
12
 
12
- export const PostViewPage = ({ channel, currentUsrId }) => {
13
+ interface PostViewPageProps {
14
+ channel: any;
15
+ currentUsrId: string;
16
+ }
17
+
18
+ export const PostViewPage: React.FC<PostViewPageProps> = ({ channel, currentUsrId }) => {
13
19
  const navigate = useNavigate();
14
20
  const location = useLocation();
15
- const [deleteChannel, deleteChannelResponse] = useDeleteChannelMutation({
16
- // update: (cache, mutationResult) => {
17
- // const normalizedId = cache.identify({ ChannelId, __typename: 'Channel' });
18
- // cache.evict({ id: normalizedId });
19
- // cache.gc();
20
- // cache.modify({
21
- // fields: {
22
- // channels(existingChannels, {toReference}) {
23
- // return [...existingChannels.filter(i => i !== mutationResult.data.deleteChannel)]
24
- // }
25
- // }
26
- // })
27
- // },
28
- });
21
+ const [deleteChannel] = useDeleteChannelMutation();
29
22
 
30
- const hendleDelete = async () => {
23
+ const handleDelete = async () => {
31
24
  await deleteChannel({
32
25
  variables: {
33
26
  ChannelId: channel.id,
@@ -45,87 +38,73 @@ export const PostViewPage = ({ channel, currentUsrId }) => {
45
38
  });
46
39
  };
47
40
 
48
- const menu = (
49
- <Menu>
50
- <Menu.Item key="0">
51
- <div style={{ cursor: 'pointer' }} onClick={hendleDelete}>
52
- Delete Channel
53
- </div>
54
- </Menu.Item>
55
- {/*<Menu.Divider />*/}
56
- </Menu>
57
- );
41
+ const menuItems = [
42
+ {
43
+ key: 'search',
44
+ icon: <AiOutlineSearch className="h-5 w-5" />,
45
+ label: 'Search',
46
+ },
47
+ {
48
+ key: 'pin',
49
+ icon: <RiPushpinLine className="h-5 w-5" />,
50
+ label: 'Pin to channel',
51
+ },
52
+ {
53
+ key: 'star',
54
+ icon: <AiOutlineStar className="h-5 w-5" />,
55
+ label: 'Star channel',
56
+ },
57
+ {
58
+ key: 'members',
59
+ icon: <BsAt className="h-5 w-5" />,
60
+ label: 'View members',
61
+ },
62
+ {
63
+ key: 'delete',
64
+ icon: <IoBookmarkOutline className="h-5 w-5" />,
65
+ label: 'Delete channel',
66
+ onClick: handleDelete,
67
+ },
68
+ ];
58
69
 
59
70
  return (
60
- <div>
61
- {channel ? (
62
- <div className={css(styleSheet2.customStyle)}>
63
- <div className="top-bar">
64
- {channel ? (
65
- <div className="top-left">
66
- <div className="text-nav">
67
- <button style={{ border: '0px', background: 'white' }}>
68
- <AiOutlineStar className="icon ml-0" />
69
- </button>
70
- <h5>
71
- {channel.type !== 'DIRECT'
72
- ? channel.title
73
- : channel.displayName.split('_').length === 2
74
- ? channel.displayName.split('_')[0].split('-')[0] !== currentUsrId
75
- ? channel.displayName.split('_')[0].split('-')[1]
76
- : channel.displayName.split('_')[1].split('-')[1]
77
- : channel.displayName}
78
- </h5>
79
- <Dropdown overlay={menu} trigger={['click']} className="down_menu">
80
- <a className="ant-dropdown-link" onClick={(e) => e.preventDefault()}>
81
- <BsChevronDown className="down_menu" />
82
- </a>
83
- </Dropdown>
84
- </div>
85
- <p>
86
- {channel.description ? channel.description : 'Add a channel description'}
87
- <a> Edit Description</a>
88
- </p>
89
- </div>
90
- ) : (
91
- <div className="top-left">
92
- <div className="text-nav">
93
- <button style={{ border: '0px', background: 'white' }}>
94
- <AiOutlineStar className="icon ml-0" />
95
- </button>
96
- <h5>surveybot</h5>
97
- <span>BOT</span>
98
- </div>
99
- <p>
100
- Surveybot collects user feedback to improve Mattermost.<a href="#">Learn more.</a>
101
- </p>
102
- </div>
103
- )}
104
- <div className="top-right">
105
- <button style={{ border: '0px', background: 'white' }}>
106
- <RiPushpinLine className="icon" />
107
- </button>
108
- <div className="searchbar">
109
- <AiOutlineSearch className="icon" />
110
- <input type="search" name="text" placeholder="search" />
111
- </div>
112
- <div className="icons-nav">
113
- <button style={{ border: '0px', background: 'white' }}>
114
- <BsAt className="icon" />
115
- </button>
116
- <button style={{ border: '0px', background: 'white' }}>
117
- <IoBookmarkOutline className="icon-m" color="gray" />
118
- </button>
119
- <button style={{ border: '0px', background: 'white' }}>
120
- <AiOutlineQuestionCircle className="icon" />
71
+ <div className="flex flex-col h-full">
72
+ <div className="flex items-center justify-between px-4 py-2 border-b border-gray-200">
73
+ <div className="flex items-center space-x-4">
74
+ <h1 className="text-xl font-semibold text-gray-900">{channel?.name || 'Channel Name'}</h1>
75
+ <div className="flex items-center space-x-2 text-gray-500">
76
+ <BsAt className="h-4 w-4" />
77
+ <span>{channel?.members_count || 0} members</span>
78
+ </div>
79
+ </div>
80
+ <div className="flex items-center space-x-2">
81
+ <div className="relative">
82
+ <button
83
+ className="flex items-center space-x-1 px-3 py-2 text-gray-700 hover:bg-gray-100 rounded-md"
84
+ onClick={() => {}}
85
+ >
86
+ <BsChevronDown className="h-4 w-4" />
87
+ <span>More</span>
88
+ </button>
89
+ <div className="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg hidden">
90
+ {menuItems.map((item) => (
91
+ <button
92
+ key={item.key}
93
+ onClick={item.onClick}
94
+ className="flex items-center space-x-2 w-full px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"
95
+ >
96
+ {item.icon}
97
+ <span>{item.label}</span>
121
98
  </button>
122
- </div>
99
+ ))}
123
100
  </div>
124
101
  </div>
102
+ <button className="p-2 text-gray-400 hover:text-gray-600 rounded-full hover:bg-gray-100">
103
+ <AiOutlineQuestionCircle className="h-5 w-5" />
104
+ </button>
125
105
  </div>
126
- ) : (
127
- ''
128
- )}
106
+ </div>
107
+ <div className="flex-1 overflow-y-auto p-4">{/* Channel content will go here */}</div>
129
108
  </div>
130
109
  );
131
110
  };
@@ -1,8 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { FormattedMessage } from 'react-intl';
3
3
  import EmojiIcon from '../../../widgets/icons/emoji_icon';
4
- import { css } from '@emotion/css';
5
- import { styleSheet } from './style';
6
4
 
7
5
  export const PostHeaderCustomStatus = (props) => {
8
6
  const { userId, isSystemMessage, isBot } = props;
@@ -37,10 +35,13 @@ export const PostHeaderCustomStatus = (props) => {
37
35
  // dispatch(setStatusDropdown(true));
38
36
  };
39
37
  return (
40
- <div className={css(styleSheet.postHeaderStyle)}>
41
- <button onClick={updateStatus} className="post__header-set-custom-status cursor--pointer style--none">
42
- <EmojiIcon className="post__header-set-custom-status-icon" />
43
- <span className="post__header-set-custom-status-text">
38
+ <div className="p-2">
39
+ <button
40
+ onClick={updateStatus}
41
+ className="flex items-center gap-2 cursor-pointer border-none bg-transparent p-0"
42
+ >
43
+ <EmojiIcon className="w-5 h-5" />
44
+ <span className="text-sm">
44
45
  <FormattedMessage id="post_header.update_status" defaultMessage="Update your status" />
45
46
  </span>
46
47
  </button>
@@ -1,54 +1,54 @@
1
- import { inherits } from 'util';
1
+ // import { inherits } from 'util';
2
2
 
3
3
  export const styleSheet = {
4
- postHeaderStyle: {
5
- display: 'inherit',
6
- '& .post__header-set-custom-status': {
7
- // display: 'none',
8
- },
9
- '& .post.current--user.other--root .post__header-set-custom-status, .post.current--user.post--root .post__header-set-custom-status, .post.current--user.post--comment .post__header-set-custom-status':
10
- {
11
- display: 'block',
12
- padding: '0 6px',
13
- marginLeft: '8px',
14
- background: 'rgba(0, 0, 0, )',
15
- borderRadius: '4px',
16
- },
17
- '& .post.current--user.other--root .post__header-set-custom-status-icon > svg, .post.current--user.post--root .post__header-set-custom-status-icon > svg, .post.current--user.post--comment .post__header-set-custom-status-icon > svg':
18
- {
19
- width: '12px',
20
- height: '12px',
21
- marginRight: '4px',
22
- marginBottom: '2px',
23
- background: 'inherit',
24
- fill: 'rgba(0, 1, 0, )',
25
- verticalAlign: 'middle',
26
- },
27
- '& .post.current--user.other--root .post__header-set-custom-status-icon > svg:hover, .post.current--user.post--root .post__header-set-custom-status-icon > svg:hover, .post.current--user.post--comment .post__header-set-custom-status-icon > svg:hover':
28
- {
29
- fill: 'rgba(0, 1, 0, )',
30
- },
31
- '& .post.current--user.other--root .post__header-set-custom-status-text, .post.current--user.post--root .post__header-set-custom-status-text, .post.current--user.post--comment .post__header-set-custom-status-text':
32
- {
33
- color: 'rgba(0, 1, 0, )',
34
- fontSize: '12px',
35
- fontWeight: 'normal',
36
- },
37
- '& .post.current--user.other--root .post__header-set-custom-status-text:hover, .post.current--user.post--root .post__header-set-custom-status-text:hover, .post.current--user.post--comment .post__header-set-custom-status-text:hover':
38
- {
39
- color: 'rgba(0, 1, 0, )',
40
- },
41
- '& .post.current--user.other--root .post__header-set-custom-status:active, .post.current--user.post--root .post__header-set-custom-status:active, .post.current--user.post--comment .post__header-set-custom-status:active':
42
- {
43
- background: 'rgba(0, 0, 0, )',
44
- },
45
- '& .post.current--user.other--root .post__header-set-custom-status:active-icon > svg, .post.current--user.post--root .post__header-set-custom-status:active-icon > svg, .post.current--user.post--comment .post__header-set-custom-status:active-icon > svg':
46
- {
47
- // fill: var(--button-bg);
48
- },
49
- '& .post.current--user.other--root .post__header-set-custom-status:active-text, .post.current--user.post--root .post__header-set-custom-status:active-text, .post.current--user.post--comment .post__header-set-custom-status:active-text':
50
- {
51
- // color: var(--button-bg);
52
- },
53
- }
4
+ postHeaderStyle: {
5
+ display: 'inherit',
6
+ '& .post__header-set-custom-status': {
7
+ // display: 'none',
8
+ },
9
+ '& .post.current--user.other--root .post__header-set-custom-status, .post.current--user.post--root .post__header-set-custom-status, .post.current--user.post--comment .post__header-set-custom-status':
10
+ {
11
+ display: 'block',
12
+ padding: '0 6px',
13
+ marginLeft: '8px',
14
+ background: 'rgba(0, 0, 0, )',
15
+ borderRadius: '4px',
16
+ },
17
+ '& .post.current--user.other--root .post__header-set-custom-status-icon > svg, .post.current--user.post--root .post__header-set-custom-status-icon > svg, .post.current--user.post--comment .post__header-set-custom-status-icon > svg':
18
+ {
19
+ width: '12px',
20
+ height: '12px',
21
+ marginRight: '4px',
22
+ marginBottom: '2px',
23
+ background: 'inherit',
24
+ fill: 'rgba(0, 1, 0, )',
25
+ verticalAlign: 'middle',
26
+ },
27
+ '& .post.current--user.other--root .post__header-set-custom-status-icon > svg:hover, .post.current--user.post--root .post__header-set-custom-status-icon > svg:hover, .post.current--user.post--comment .post__header-set-custom-status-icon > svg:hover':
28
+ {
29
+ fill: 'rgba(0, 1, 0, )',
30
+ },
31
+ '& .post.current--user.other--root .post__header-set-custom-status-text, .post.current--user.post--root .post__header-set-custom-status-text, .post.current--user.post--comment .post__header-set-custom-status-text':
32
+ {
33
+ color: 'rgba(0, 1, 0, )',
34
+ fontSize: '12px',
35
+ fontWeight: 'normal',
36
+ },
37
+ '& .post.current--user.other--root .post__header-set-custom-status-text:hover, .post.current--user.post--root .post__header-set-custom-status-text:hover, .post.current--user.post--comment .post__header-set-custom-status-text:hover':
38
+ {
39
+ color: 'rgba(0, 1, 0, )',
40
+ },
41
+ '& .post.current--user.other--root .post__header-set-custom-status:active, .post.current--user.post--root .post__header-set-custom-status:active, .post.current--user.post--comment .post__header-set-custom-status:active':
42
+ {
43
+ background: 'rgba(0, 0, 0, )',
44
+ },
45
+ '& .post.current--user.other--root .post__header-set-custom-status:active-icon > svg, .post.current--user.post--root .post__header-set-custom-status:active-icon > svg, .post.current--user.post--comment .post__header-set-custom-status:active-icon > svg':
46
+ {
47
+ // fill: var(--button-bg);
48
+ },
49
+ '& .post.current--user.other--root .post__header-set-custom-status:active-text, .post.current--user.post--root .post__header-set-custom-status:active-text, .post.current--user.post--comment .post__header-set-custom-status:active-text':
50
+ {
51
+ // color: var(--button-bg);
52
+ },
53
+ },
54
54
  } as any;