.not-active{
display: none;
}display: flex. Этот элемент - это панель с настройками.classList.toggle переключать класс not-active у этого элемента.
<div class='element'>
</div>.element{
display: flex;
width: 20px;
height: 20px;
background-color: #000;
}
.not-active{
display: none;
}document.querySelector('.element').classList.toggle('not-active')