Skip to content

Commit

Permalink
Merge pull request #26 from ironmonk88/main
Browse files Browse the repository at this point in the history
changes for monks-scene-navigation
  • Loading branch information
saif-ellafi authored Apr 23, 2021
2 parents f2a13d6 + e2567f4 commit bce7f1f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/component/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default class MinimalUINavigation {
switch(game.settings.get('minimal-ui', 'sceneNavigationPreview')) {
case 'hover': {
if (game.user.isGM) {
let sceneTabs = $("#scene-list li");
let sceneTabs = $("#scene-list li,.scene-list li");
rootStyle.setProperty('--navithumbmarg', '10px');
sceneTabs.each(function(i, sceneTab) {
let sceneId = $(sceneTab).attr('data-scene-id');
Expand Down
37 changes: 37 additions & 0 deletions styles/component/navigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,41 @@
border: 1px solid var(--bordercolor);
border-bottom: 1px solid var(--bordercolor);
box-shadow: 0 0 var(--shadowstrength) var(--shadowcolor);
}

#navigation .monks-scene-navigation{
flex: 0 0 var(--navilh);
height: var(--navilh);
}

#navigation .monks-scene-navigation .scene-list > li.nav-item{
height: var(--navilh);
}

#navigation .monks-scene-navigation .scene-list > li.nav-item a{
line-height: var(--navilh);
height: var(--navilh);
font-size: var(--navifs);
padding:0px 4px;
}

#navigation .monks-scene-navigation .scene-list > li.nav-item ul.scene-players{
top:16px;
}

#navigation .monks-scene-navigation .scene-list > li.nav-item.folder a{
padding-top:0px;
border-top:1px;
}

#navigation .monks-scene-navigation .scene-list > li.nav-item.folder.expanded a{
height:calc(var(--navilh) + 6px);
}

#navigation .monks-scene-navigation .scene-list > li.nav-item.folder-header{
line-height: var(--navilh);
}

#navigation .monks-scene-navigation .scene-list > li.nav-item .navi-preview{
top: calc(var(--navithumbmarg) + 15px);
}

0 comments on commit bce7f1f

Please sign in to comment.