mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Change streamBox to streamFilter
This commit is contained in:
@@ -10,3 +10,9 @@
|
||||
.tabPanel {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.filterWrapper {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ import t, {timeago} from 'coral-framework/services/i18n';
|
||||
import CommentBox from 'coral-plugin-commentbox/CommentBox';
|
||||
import QuestionBox from 'coral-plugin-questionbox/QuestionBox';
|
||||
import {Button, TabBar, Tab, TabCount, TabContent, TabPane} from 'coral-ui';
|
||||
import cn from 'classnames';
|
||||
|
||||
import {getTopLevelParent} from '../graphql/utils';
|
||||
import AllCommentsPane from './AllCommentsPane';
|
||||
@@ -163,10 +164,6 @@ class Stream extends React.Component {
|
||||
/>
|
||||
)}
|
||||
|
||||
<div className="talk-stream-wrapper-box">
|
||||
<Slot fill="streamBox" />
|
||||
</div>
|
||||
|
||||
{/* the highlightedComment is isolated after the user followed a permalink */}
|
||||
{highlightedComment
|
||||
? <Comment
|
||||
@@ -199,6 +196,11 @@ class Stream extends React.Component {
|
||||
liveUpdates={true}
|
||||
/>
|
||||
: <div>
|
||||
<div
|
||||
className={cn('talk-stream-filter-wrapper', styles.filterWrapper)}
|
||||
>
|
||||
<Slot fill="streamFilter" />
|
||||
</div>
|
||||
<TabBar activeTab={activeStreamTab} onTabClick={setActiveStreamTab} sub>
|
||||
<Tab tabId={'featured'}>
|
||||
Featured
|
||||
|
||||
@@ -181,10 +181,6 @@ body {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.talk-stream-wrapper-box {
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.talk-stream-comments-container {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user