Skip to content

Commit

Permalink
Fixed overlapping scenes button with top side controls
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Mar 4, 2021
1 parent 78136c9 commit f73b65f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 0.1.0
* Bugfix: Overlapping scene navigation when side control was on Top Left

### 0.0.9
* Enhancement: Added Macro Auto-Hide mode with animation
* Enhancement: Added some shadow around the Macro Bar
Expand Down
3 changes: 2 additions & 1 deletion minimalui.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
--submenustyle: contents;
--hotbaranim1: 0px;
--hotbaranim2: 1px
--navistart: 10px;
}

#logo {
visibility: hidden;
}

#navigation {
left: 10px;
left: var(--navistart);
visibility: var(--visinav);
}

Expand Down
4 changes: 4 additions & 0 deletions minimalui.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,22 @@ Hooks.on('renderSceneControls', async function() {
switch(game.settings.get('minimal-ui', 'sidePanelPosition')) {
case 'top': {
rootStyle.setProperty('--leftbarpos', '0vmin');
rootStyle.setProperty('--navistart', '45px');
break;
}
case 'center': {
rootStyle.setProperty('--leftbarpos', '20vmin');
rootStyle.setProperty('--navistart', '10px');
break;
}
case 'lower': {
rootStyle.setProperty('--leftbarpos', '30vmin');
rootStyle.setProperty('--navistart', '10px');
break;
}
case 'bottom': {
rootStyle.setProperty('--leftbarpos', '40vmin');
rootStyle.setProperty('--navistart', '10px');
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Minimal UI",
"author": "JeansenVaars#2857",
"description": "Minimal UI reduces size of Foundry interface and allows hiding or collapsing specific parts.",
"version": "0.0.9",
"version": "0.1.0",
"minimumCoreVersion": "0.7.9",
"compatibleCoreVersion": "0.7.9",
"scripts": [ "minimalui.js" ],
Expand Down

0 comments on commit f73b65f

Please sign in to comment.