make dropdown menu buttons at least the length of the parent button

This commit is contained in:
leander committed 2025-08-06 01:17:43 +02:00
1 parent 50bdf6503e
commit 864aef1b7b
2 files changed
+10 -2

No files matched your search

+9 -1
View File
@@ -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 {
+1 -1
View File
@@ -28,7 +28,7 @@ const OtherButton = () => {
]
return (
<div>
<div className={styles.dropdownContainer}>
<button onClick={toggleDropdown} className={styles.button}>
{t("other")}{" "}
<span className={isOpen ? styles.arrowUp : styles.arrowDown}></span>