From bd4e9963026dd12607309233c2609df6c8b7cf95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8r=E2=88=82=C2=A1?= <4456749@users.noreply.github.com> Date: Wed, 13 Mar 2024 13:58:37 +0100 Subject: [PATCH] Fixing the powered by aragon bottom overlap --- components/sidebar.tsx | 209 ++++++++++-------- .../dualGovernance/pages/proposal-list.tsx | 1 + plugins/tokenVoting/pages/proposal-list.tsx | 1 + 3 files changed, 122 insertions(+), 89 deletions(-) diff --git a/components/sidebar.tsx b/components/sidebar.tsx index 5795eb19..21f0fe2e 100644 --- a/components/sidebar.tsx +++ b/components/sidebar.tsx @@ -38,8 +38,14 @@ const Sidebar = () => { return (
+
@@ -58,100 +64,125 @@ const Sidebar = () => { Aragonette
-
    - {/* Home page */} -
  • setIsOpen(false)} - className={`flex w-full justify-between text-neutral-700 cursor-pointer items-center mb-2 ${isHome ? "bg-neutral-100 md:bg-neutral-200 font-semibold text-primary-500" : "" - } rounded-lg shadow-lg hover:bg-neutral-100 md:hover:bg-neutral-200`} - > - - + +
+
+ +
+
+
+ ); +}; - - Home - - - +const MenuList = ({ + isHome, + setIsOpen, + pluginId, +}: { + isHome: boolean; + setIsOpen: (o: boolean) => any; + pluginId: string | null; +}) => { + return ( + - -
+ {/* PLUGINS */} + {plugins.map((plugin, idx) => ( +
  • setIsOpen(false)} + className={`flex w-full justify-between text-neutral-700 cursor-pointer items-center mb-2 ${ + plugin.id === pluginId + ? "bg-neutral-100 md:bg-neutral-200 font-semibold text-primary-500 rounded-lg shadow-lg" + : "" + } rounded-lg shadow-lg hover:bg-neutral-100 md:hover:bg-neutral-200`} + > - - Powered by{" "} - -  Aragon - - Aragonette - + + {plugin.title} -
  • - - + + ))} + + {/* EXTERNAL LINKS */} +
  • + + + Discord + +
  • + + ); +}; + +const PoweredByAragon = () => { + return ( +
    + + + Powered by{" "} + +  Aragon + + Aragonette + + +
    ); }; diff --git a/plugins/dualGovernance/pages/proposal-list.tsx b/plugins/dualGovernance/pages/proposal-list.tsx index 409c6203..810836ab 100644 --- a/plugins/dualGovernance/pages/proposal-list.tsx +++ b/plugins/dualGovernance/pages/proposal-list.tsx @@ -96,6 +96,7 @@ export default function Proposals() {