From 9a58804142e214a9c3c20f0d78c65cbf19f2a297 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 1 May 2023 00:53:49 +0800 Subject: [PATCH] Min-height to make sure it's not too small --- src/pages/home.jsx | 54 +++++++++++++++++--------------- src/pages/notifications-menu.css | 3 ++ 2 files changed, 31 insertions(+), 26 deletions(-) diff --git a/src/pages/home.jsx b/src/pages/home.jsx index af6ac038..9a2585e6 100644 --- a/src/pages/home.jsx +++ b/src/pages/home.jsx @@ -169,34 +169,36 @@ function NotificationsMenu({ anchorRef, state, onClose }) {

Notifications

- {snapStates.notifications.length ? ( - <> - {snapStates.notifications - .slice(0, NOTIFICATIONS_DISPLAY_LIMIT) - .map((notification) => ( - - ))} - - ) : uiState === 'loading' ? ( -
- -
- ) : ( - uiState === 'error' && ( +
+ {snapStates.notifications.length ? ( + <> + {snapStates.notifications + .slice(0, NOTIFICATIONS_DISPLAY_LIMIT) + .map((notification) => ( + + ))} + + ) : uiState === 'loading' ? (
-

Unable to fetch notifications.

-

- -

+
- ) - )} + ) : ( + uiState === 'error' && ( +
+

Unable to fetch notifications.

+

+ +

+
+ ) + )} +