Skip to content

Commit

Permalink
Fixed navigation overlapp
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Dec 29, 2023
1 parent b413ab6 commit a86b852
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.6.9
* Bugfix: Fixed navigation scenes overlapping under chat
* Bugfix: Issues with logo size on some systems

### 1.6.8
* Compatibility: Monk's Hotbar Extension

Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.",
"version": "1.6.8",
"version": "1.6.9",
"compatibility": {
"minimum": "10",
"verified": "11.313",
Expand Down Expand Up @@ -49,7 +49,7 @@
],
"url": "https://github.com/saif-ellafi/foundryvtt-minimal-ui.git",
"manifest": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/latest/download/module.json",
"download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/download/1.6.8/foundryvtt-minimal-ui_1.6.8.zip",
"download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/download/1.6.9/foundryvtt-minimal-ui_1.6.9.zip",
"readme": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/blob/main/README.md",
"license": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/blob/main/LICENSE.md",
"changelog": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/blob/main/CHANGELOG.md"
Expand Down
5 changes: 3 additions & 2 deletions modules/component/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ import '../../styles/component/navigation.css';

export default class MinimalUINavigation {

static cssSceneNavNoLogoStart = 10;
static cssSceneNavNoLogoStart = 0;
static cssSceneNavLogoStart = 110;

static async collapseNavigation() {
await ui.nav.collapse();
}

static positionNav() {
let navixpos = game.settings.get('minimal-ui', 'foundryLogoSize') === 'hidden' ? MinimalUINavigation.cssSceneNavNoLogoStart : 120;
let navixpos = game.settings.get('minimal-ui', 'foundryLogoSize') === 'hidden' ? MinimalUINavigation.cssSceneNavNoLogoStart : MinimalUINavigation.cssSceneNavLogoStart;
if (game.webrtc.mode > 0 && !ui.webrtc.element.hasClass('hidden'))
if (game.webrtc.settings.client.dockPosition === 'left')
navixpos += ui.webrtc.position.width;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "foundryvtt-minimal-ui",
"version": "1.6.8",
"version": "1.6.9",
"description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.",
"main": "minimalui.js",
"scripts": {
Expand Down
4 changes: 0 additions & 4 deletions styles/component/logo.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
:root {
--logovis: hidden;
--logoh: 50px;
--logow: 100px;
}

#logo {
visibility: var(--logovis);
height: var(--logoh);
width: var(--logow);
}
7 changes: 4 additions & 3 deletions styles/component/navigation.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:root {
--navivis: hidden;
--navixpos: 120px;
--navixpos: 110px;
--navixmg: 75px;
--navilh: 20px;
--navifs: 14px;
Expand All @@ -9,11 +9,10 @@
}

#navigation {
left: var(--navixpos);
padding-left: var(--navixpos);
visibility: var(--navivis);
opacity: var(--opacity);
transition: 0.5s ease-out 0.5s;
position: fixed;
margin: 5px 0 0 0;
}

Expand All @@ -34,6 +33,8 @@
border: 1px solid var(--bordercolor);
border-bottom: 1px solid var(--bordercolor);
box-shadow: 0 var(--hotbarshp) var(--shadowstrength) 2px var(--shadowcolor);
left: -10px;
margin-right: 0px;
top: 5px;
}

Expand Down

0 comments on commit a86b852

Please sign in to comment.