mirror of
https://github.com/UiO-Gaming/uiogaming.no.git
synced 2026-11-05 13:56:47 +01:00
make dropdown menu buttons at least the length of the parent button
This commit is contained in:
2 files changed
+10
-2
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user