.active-dropdown {
display: flex;
flex-direction: row; /** this also works **/
}
.dropdown {
background-color: var(--eerie-black);
width: 300px;
padding: 20px;
line-height: 20px;
height: 100%;
right: 0;
position: absolute;
/**
display: flex; this works
flex-direction: column;
**/
z-index: -1;
}
function toggleDropdown(x) {
x.classList.toggle('change'); // ignore this its for smthn else
let dropdown = document.getElementsByClassName('dropdown')[0];
dropdown.classList.toggle('active-dropdown');
}