Skip to content

Commit

Permalink
Force viewport controls panel fit into viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
midlik committed Jul 5, 2024
1 parent 2f4716f commit 1b1bc5f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/overlay.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,12 @@ svg.pdbe-animated-logo {
border: solid 1px transparent;
background-clip: content-box;
}


.msp-plugin .msp-layout-static {
container-type: size; // define container to reference in .msp-viewport-controls-panel-controls
}

.msp-plugin .msp-viewport-controls-panel .msp-viewport-controls-panel-controls {
max-height: calc(100cqh - 41px - 24px - 10px); // 100cqh = viewport container, 41px = control buttons offset, 24px = header, 10px = space below
}

0 comments on commit 1b1bc5f

Please sign in to comment.