From 864aef1b7b68ffae1f3e7f61635d67848065448d Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Wed, 6 Aug 2025 01:17:43 +0200 Subject: [PATCH] make dropdown menu buttons at least the length of the parent button --- src/components/ui/otherButton.module.css | 10 +++++++++- src/components/ui/otherButton.tsx | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/ui/otherButton.module.css b/src/components/ui/otherButton.module.css index 49d2952..f55160c 100644 --- a/src/components/ui/otherButton.module.css +++ b/src/components/ui/otherButton.module.css @@ -20,12 +20,20 @@ background-color: #e6e6e6; } +.dropdownContainer { + position: relative; + display: inline-block; + width: 100%; +} + .dropdown { display: flex; flex-direction: column; position: absolute; + top: 100%; + left: 0; + min-width: 100%; border-radius: 10px; - background-color: rgba(0, 0, 0, 0, 0.5); } .dropdownButton { diff --git a/src/components/ui/otherButton.tsx b/src/components/ui/otherButton.tsx index 16f94fb..e920519 100644 --- a/src/components/ui/otherButton.tsx +++ b/src/components/ui/otherButton.tsx @@ -28,7 +28,7 @@ const OtherButton = () => { ] return ( -
+