Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6fda595

Browse filesBrowse files
authored
Merge pull request plotly#3193 from plotly/3189-vertical-modebar
fix size and alignment of vertical modebar to match horizontal modebar
2 parents 458f593 + bfe9cd3 commit 6fda595
Copy full SHA for 6fda595

File tree

Expand file treeCollapse file tree

2 files changed

+6
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-3
lines changed

‎build/plotcss.js

Copy file name to clipboardExpand all lines: build/plotcss.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ var rules = {
3737
"X .modebar-group": "float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;",
3838
"X .modebar-btn": "position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;",
3939
"X .modebar-btn svg": "position:relative;top:2px;",
40-
"X .modebar.vertical": "top:-1px;display:flex;flex-direction:column;flex-wrap:wrap;height:100%;align-content:flex-end;",
40+
"X .modebar.vertical": "display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;",
41+
"X .modebar.vertical svg": "top:-1px;",
4142
"X .modebar.vertical .modebar-group": "display:block;float:none;margin-left:0px;margin-bottom:8px;",
4243
"X .modebar.vertical .modebar-group .modebar-btn": "display:block;text-align:center;",
4344
"X [data-title]:before,X [data-title]:after": "position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;",

‎src/css/_modebar.scss

Copy file name to clipboardExpand all lines: src/css/_modebar.scss
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@
4545
}
4646

4747
.modebar.vertical {
48-
top: -1px;
4948
display: flex;
5049
flex-direction: column;
5150
flex-wrap: wrap;
52-
height: 100%;
5351
align-content: flex-end;
52+
max-height: 100%;
53+
svg {
54+
top: -1px;
55+
}
5456
.modebar-group {
5557
display: block;
5658
float: none;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.