mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 07:21:02 -04:00
[#181] set mobile ops-dropdown to fill all space except ops and banner. No need for the controls at this point while scrolling the ops
This commit is contained in:
parent
a27de41328
commit
d774a50f13
3 changed files with 5 additions and 8 deletions
|
@ -906,7 +906,7 @@ class App {
|
||||||
const controlsHeight = 50;
|
const controlsHeight = 50;
|
||||||
const operationsHeight = 80;
|
const operationsHeight = 80;
|
||||||
|
|
||||||
const remainingSpace = window.innerHeight - (bannerHeight+controlsHeight+operationsHeight);
|
const remainingSpace = window.innerHeight - (bannerHeight+controlsHeight+operationsHeight - 1); // - 1 is accounting for a border
|
||||||
|
|
||||||
// equally divide among recipe, input and output
|
// equally divide among recipe, input and output
|
||||||
["recipe", "input", "output"].forEach(( div ) => {
|
["recipe", "input", "output"].forEach(( div ) => {
|
||||||
|
@ -914,7 +914,7 @@ class App {
|
||||||
});
|
});
|
||||||
|
|
||||||
// set the ops-dropdown height
|
// set the ops-dropdown height
|
||||||
document.getElementById("operations-dropdown").style.maxHeight = `${remainingSpace}px`;
|
document.getElementById("operations-dropdown").style.maxHeight = `${window.innerHeight - (bannerHeight+operationsHeight)}px`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
- shannon entropy thingies
|
- shannon entropy thingies
|
||||||
- maybe a bit annoying that the fav cat opens whenever you add a new fav via icon-fav-click on mobile
|
- maybe a bit annoying that the fav cat opens whenever you add a new fav via icon-fav-click on mobile
|
||||||
- backspace on fs view should close max view. Keep making the same mistake and navigating away when for instance recipe is expanded and double click the window to fs > resolve. Reset layout
|
- backspace on fs view should close max view. Keep making the same mistake and navigating away when for instance recipe is expanded and double click the window to fs > resolve. Reset layout
|
||||||
|
- remove tabs on window resizing large to small?
|
||||||
|
- drag and drop from op to rec on desktop only working once
|
||||||
|
|
||||||
### JS:
|
### JS:
|
||||||
- `core/Recipe.mjs`, `core/lib/Magic.js` return imports to original
|
- `core/Recipe.mjs`, `core/lib/Magic.js` return imports to original
|
||||||
|
|
|
@ -8,16 +8,11 @@
|
||||||
|
|
||||||
#controls {
|
#controls {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
border-top: 1px solid var(--primary-border-colour);
|
||||||
background-color: var(--secondary-background-colour);
|
background-color: var(--secondary-background-colour);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 768px) {
|
|
||||||
#controls {
|
|
||||||
border-top: 1px solid var(--primary-border-colour);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#controls-content {
|
#controls-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue