From f6c069cca8f0f8d23bee811c91624913b6007c39 Mon Sep 17 00:00:00 2001 From: Anton Mushnin Date: Fri, 11 Nov 2022 14:19:39 +0300 Subject: [PATCH] streams page align --- frontend/src/components/EntriesNavigation.js | 93 ++++++++++---------- 1 file changed, 48 insertions(+), 45 deletions(-) diff --git a/frontend/src/components/EntriesNavigation.js b/frontend/src/components/EntriesNavigation.js index 250739df..a1a22847 100644 --- a/frontend/src/components/EntriesNavigation.js +++ b/frontend/src/components/EntriesNavigation.js @@ -222,6 +222,9 @@ const EntriesNavigation = () => { overflow="hidden" direction="column" flexGrow={1} + mt="10px" + mr="5px" + ml="5px" > {streamCache && !eventsIsLoading ? ( <> @@ -433,7 +436,7 @@ const EntriesNavigation = () => { w="100%" //onScroll={(e) => handleScroll(e)} > - + {!loadNewerEventsIsFetching && !nextEventIsFetching ? ( )} - - {streamCache - .slice( - cursor, - streamCache.length <= cursor + PAGE_SIZE - ? streamCache.length - : cursor + PAGE_SIZE - ) - .map((entry, idx) => ( - - ))} - {previousEvent && - !loadOlderEventsIsFetching && - !previousEventIsFetching ? ( -
- -
- ) : ( -
- {!previousEventIsFetching && !loadOlderEventsIsFetching ? ( - "Тransactions not found. You can subscribe to more addresses in Subscriptions menu." - ) : ( + {streamCache + .slice( + cursor, + streamCache.length <= cursor + PAGE_SIZE + ? streamCache.length + : cursor + PAGE_SIZE + ) + .map((entry, idx) => ( + + ))} + {previousEvent && + !loadOlderEventsIsFetching && + !previousEventIsFetching ? ( +
- )} -
- )} + > + Load older events + +
+ ) : ( +
+ {!previousEventIsFetching && !loadOlderEventsIsFetching ? ( + "Тransactions not found. You can subscribe to more addresses in Subscriptions menu." + ) : ( + + )} +
+ )} +