Merge pull request #13754 from ramonlsouza/issue-13512
Polling panel to remember "Work In Progress" polls
This commit is contained in:
commit
b3a5011003
@ -82,6 +82,7 @@ const SidebarContent = (props) => {
|
||||
};
|
||||
|
||||
const smallSidebar = width < (maxWidth / 2);
|
||||
const pollDisplay = sidebarContentPanel === PANELS.POLL ? 'inherit' : 'none';
|
||||
|
||||
return (
|
||||
<Resizable
|
||||
@ -124,14 +125,11 @@ const SidebarContent = (props) => {
|
||||
{sidebarContentPanel === PANELS.CHAT && <ChatContainer />}
|
||||
{sidebarContentPanel === PANELS.SHARED_NOTES && <NoteContainer />}
|
||||
{sidebarContentPanel === PANELS.CAPTIONS && <CaptionsContainer />}
|
||||
{sidebarContentPanel === PANELS.POLL
|
||||
&& (
|
||||
<Styled.Poll style={{ minWidth, top: '0' }} id="pollPanel">
|
||||
<PollContainer smallSidebar={smallSidebar} />
|
||||
</Styled.Poll>
|
||||
)}
|
||||
{sidebarContentPanel === PANELS.BREAKOUT && <BreakoutRoomContainer />}
|
||||
{sidebarContentPanel === PANELS.WAITING_USERS && <WaitingUsersPanel />}
|
||||
<Styled.Poll style={{ minWidth, top: '0', display: pollDisplay }} id="pollPanel">
|
||||
<PollContainer smallSidebar={smallSidebar} />
|
||||
</Styled.Poll>
|
||||
</Resizable>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user