From cc7a1e0cc874d2785f60c09b45400ee850feb450 Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Thu, 26 May 2022 14:06:52 +0300 Subject: [PATCH] style: fix nav menus overflow border --- .../Navbar/CategoriesList/CategoriesList.stories.tsx | 7 +++++-- src/Components/Navbar/CategoriesList/CategoriesList.tsx | 7 ++----- src/Components/Navbar/NavDesktop.tsx | 4 ++-- src/Components/Navbar/NavMobile.tsx | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Components/Navbar/CategoriesList/CategoriesList.stories.tsx b/src/Components/Navbar/CategoriesList/CategoriesList.stories.tsx index 85b0e74..7ba9297 100644 --- a/src/Components/Navbar/CategoriesList/CategoriesList.stories.tsx +++ b/src/Components/Navbar/CategoriesList/CategoriesList.stories.tsx @@ -1,5 +1,6 @@ import { ComponentStory, ComponentMeta } from '@storybook/react'; -import { MOCK_DATA } from 'src/mocks/data'; +import { Menu, MenuButton } from '@szhsin/react-menu'; +import Button from 'src/Components/Button/Button'; import CategoriesList from './CategoriesList'; @@ -9,7 +10,9 @@ export default { } as ComponentMeta; -const Template: ComponentStory = (args) => ; +const Template: ComponentStory = (args) => Open Categories Menu}> + +; export const Default = Template.bind({}); Default.args = { diff --git a/src/Components/Navbar/CategoriesList/CategoriesList.tsx b/src/Components/Navbar/CategoriesList/CategoriesList.tsx index 22aac25..92979d4 100644 --- a/src/Components/Navbar/CategoriesList/CategoriesList.tsx +++ b/src/Components/Navbar/CategoriesList/CategoriesList.tsx @@ -33,7 +33,7 @@ export default function CategoriesList({ classes = {}, onClick }: Props) { <> {data?.allCategories.map(category => { onClick?.(category.id) navigate(`/category/${category.id}`) @@ -41,10 +41,7 @@ export default function CategoriesList({ classes = {}, onClick }: Props) { key={category.id} href={`/category/${category.id}`} > - -
  • - {category.icon} {category.title} {numberFormatter(category.votes_sum)} -
  • + {category.icon} {category.title} {numberFormatter(category.votes_sum)}
    )} diff --git a/src/Components/Navbar/NavDesktop.tsx b/src/Components/Navbar/NavDesktop.tsx index 0474032..b69060a 100644 --- a/src/Components/Navbar/NavDesktop.tsx +++ b/src/Components/Navbar/NavDesktop.tsx @@ -74,7 +74,7 @@ export default function NavDesktop() {
    • - LApps }> + LApps }> { @@ -112,7 +112,7 @@ export default function NavDesktop() {
    • - Community }> + Community }> { diff --git a/src/Components/Navbar/NavMobile.tsx b/src/Components/Navbar/NavMobile.tsx index c751c09..8d3fea4 100644 --- a/src/Components/Navbar/NavMobile.tsx +++ b/src/Components/Navbar/NavMobile.tsx @@ -161,7 +161,7 @@ export default function NavMobile({ }: Props) { toggleDrawerOpen(false)}> {link.text}
    • )} */}
    • - LApps }> + LApps }> { @@ -200,7 +200,7 @@ export default function NavMobile({ }: Props) {
    • - Community }> + Community }> {