Переглянути джерело

Allow the popout menu to overflow

This also gets rid of the groups, which were messing up the layout.
tags/v0.1.0
Fen Dweller 5 роки тому
джерело
коміт
ecbdf755a5
2 змінених файлів з 4 додано та 5 видалено
  1. +1
    -0
      macrovision.css
  2. +3
    -5
      macrovision.js

+ 1
- 0
macrovision.css Переглянути файл

@@ -732,6 +732,7 @@ i.far {
#popout-menu {
display: none;
flex-direction: column;
flex-wrap: wrap;
height: 80vh;
justify-content: space-around;
position: fixed;


+ 3
- 5
macrovision.js Переглянути файл

@@ -1258,8 +1258,8 @@ function prepareMenu() {
}
]
].forEach(group => {
const span = document.createElement("span");
span.classList.add("popout-group");
// we no longer group things, so I'll just ignore the groups
// for now
group.forEach(entry => {
const buttonHolder = document.createElement("div");
buttonHolder.classList.add("menu-button-holder");
@@ -1286,10 +1286,8 @@ function prepareMenu() {

buttonHolder.appendChild(button);
buttonHolder.appendChild(actionText);
span.appendChild(buttonHolder);
menubar.appendChild(buttonHolder);
});

menubar.appendChild(span);
});

if (checkHelpDate()) {


Завантаження…
Відмінити
Зберегти