Skip to content

Commit

Permalink
Unhide dropdown in Viewer Info page (owncast#3173)
Browse files Browse the repository at this point in the history
Co-authored-by: janWilejan <>
  • Loading branch information
janWilejan authored Jul 14, 2023
1 parent 7bd037e commit 8148f74
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions web/pages/admin/viewer-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,6 @@ export default function ViewersOverTime() {
)}

<Spin spinning={!viewerInfo.length || loadingChart}>
<Dropdown menu={{ items }} trigger={['click']}>
<button
type="button"
style={{ float: 'right', background: 'transparent', border: 'unset' }}
>
{timeWindowStart.title} <DownOutlined />
</button>
</Dropdown>
{viewerInfo.length > 0 && (
<Chart
title="Viewers"
Expand All @@ -151,6 +143,20 @@ export default function ViewersOverTime() {
/>
)}

<Dropdown menu={{ items }} trigger={['click']}>
<button
type="button"
style={{
position: 'absolute',
top: '5px',
right: '35px',
background: 'transparent',
border: 'unset',
}}
>
{timeWindowStart.title} <DownOutlined />
</button>
</Dropdown>
<ViewerTable data={viewerDetails} />
</Spin>
</>
Expand Down

0 comments on commit 8148f74

Please sign in to comment.