Skip to content

Commit

Permalink
Page only when scrolled (so that info message is shown after paging o…
Browse files Browse the repository at this point in the history
  • Loading branch information
ashokaditya committed Jun 21, 2021
1 parent 6875415 commit 48e3291
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const EndpointActivityLog = memo(

return (
<>
<EuiFlexGroup direction="column">
<EuiFlexGroup direction="column" style={{ height: '75vh' }}>
{(activityLogLoaded && !activityLogSize) || activityLogError ? (
<EuiFlexItem>
<EuiEmptyPrompt
Expand All @@ -93,7 +93,7 @@ export const EndpointActivityLog = memo(
</EuiFlexItem>
) : (
<>
<EuiFlexItem>
<EuiFlexItem grow={true}>
{activityLogLoaded &&
activityLogData.map((logEntry) => (
<LogEntry key={`${logEntry.item.id}`} logEntry={logEntry} />
Expand All @@ -103,7 +103,7 @@ export const EndpointActivityLog = memo(
<LogEntry key={`${logEntry.item.id}`} logEntry={logEntry} />
))}
</EuiFlexItem>
<EuiFlexItem>
<EuiFlexItem grow={false}>
{activityLogLoading && <EuiLoadingContent lines={3} />}
{(!activityLogLoading || !isPagingDisabled) && <Sentinel ref={fetchMoreSentinel} />}
{isPagingDisabled && !activityLogLoading && (
Expand Down

0 comments on commit 48e3291

Please sign in to comment.