Skip to content

Commit

Permalink
[gchq#181] returns banner height to original 30 pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
valdelaseras committed Feb 3, 2024
1 parent b51a298 commit cf59bd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/web/App.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -842,14 +842,14 @@ class App {
/**
* Due to variable available heights on mobile devices ( due to the
* address bar etc. ), we need to calculate the available space and
* set some heights programmatically based on the full view height,
* minus fixed height elements.
* set some heights programmatically based on the full viewport
* minus fixed-height elements.
*
* Be mindful to update these fixed numbers accordingly in the stylesheets
* ( themes/_structure ) if you make changes to those elements' height.
*/
assignAvailableHeight() {
const bannerHeight = 40;
const bannerHeight = 30;
const controlsHeight = 50;
const operationsHeight = 80;

Expand Down
4 changes: 2 additions & 2 deletions src/web/stylesheets/themes/_structure.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:root {
/* Fixed heights */
--banner-height: 40px;
--banner-height: 30px;

/* Mobile height */
--title-height: 40px;
Expand All @@ -16,7 +16,7 @@
* A note:
*
* Heights of #recipe, #input and #output are set programmatically
* in App.js
* in App.js assignAvailableHeight();
*/


0 comments on commit cf59bd3

Please sign in to comment.