From 73d0c9bb1276413f973e4b9924668ffdec96e1eb Mon Sep 17 00:00:00 2001 From: Layne Date: Thu, 17 Mar 2022 11:45:43 -0400 Subject: [PATCH] navi even odd rows fix --- src/components/navigator/NavigatorView.scss | 1 + .../search-result/NavigatorSearchResultItemView.tsx | 1 - .../views/search-result/NavigatorSearchResultView.tsx | 9 +++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/navigator/NavigatorView.scss b/src/components/navigator/NavigatorView.scss index 22b513ce..624d3101 100644 --- a/src/components/navigator/NavigatorView.scss +++ b/src/components/navigator/NavigatorView.scss @@ -1,4 +1,5 @@ .nitro-navigator { + min-width: $navigator-width; width: $navigator-width; height: $navigator-height; diff --git a/src/components/navigator/views/search-result/NavigatorSearchResultItemView.tsx b/src/components/navigator/views/search-result/NavigatorSearchResultItemView.tsx index bc8f0030..c770e16c 100644 --- a/src/components/navigator/views/search-result/NavigatorSearchResultItemView.tsx +++ b/src/components/navigator/views/search-result/NavigatorSearchResultItemView.tsx @@ -85,7 +85,6 @@ export const NavigatorSearchResultItemView: FC{roomData.roomName} - { roomData.habboGroupId > 0 && } { children } diff --git a/src/components/navigator/views/search-result/NavigatorSearchResultView.tsx b/src/components/navigator/views/search-result/NavigatorSearchResultView.tsx index c8079789..73232de4 100644 --- a/src/components/navigator/views/search-result/NavigatorSearchResultView.tsx +++ b/src/components/navigator/views/search-result/NavigatorSearchResultView.tsx @@ -2,7 +2,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { NavigatorSearchResultList } from '@nitrots/nitro-renderer'; import { FC, useEffect, useState } from 'react'; import { LocalizeText } from '../../../../api'; -import { AutoGrid, AutoGridProps } from '../../../../common'; +import { AutoGrid, AutoGridProps, Grid } from '../../../../common'; import { Column } from '../../../../common/Column'; import { Flex } from '../../../../common/Flex'; import { Text } from '../../../../common/Text'; @@ -69,9 +69,10 @@ export const NavigatorSearchResultView: FC = pro { gridHasTwoColumns ? {searchResult.rooms.length > 0 && searchResult.rooms.map((room, index) => ) } - : <> - { searchResult.rooms.length > 0 && searchResult.rooms.map((room, index) => ) } - } + : + { searchResult.rooms.length > 0 && searchResult.rooms.map((room, index) => ) } + + } }