Skip to content

Commit 5b08409

Browse files
committed
fix/z-index stacking for hovercard
1 parent 7106f88 commit 5b08409

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

app/assets/stylesheets/_sidebar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.sidebar {
44
&--wrapper {
55
position: fixed;
6-
// top: 52px;
6+
z-index: 1;
77
margin-right: 15px;
88
}
99

app/assets/stylesheets/alert.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.alert-mask {
22
position: fixed;
3-
z-index: 9998;
3+
z-index: 6;
44
top: 0;
55
left: 0;
66
width: 100%;

app/assets/stylesheets/modal.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.modal-mask {
22
position: fixed;
3-
z-index: 4;
3+
z-index: 5;
44
top: 0;
55
left: 0;
66
width: 100%;

app/assets/stylesheets/popover.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
box-shadow: 0 0 6px rgba(0,0,0,.3);
88
width: 120px;
99
text-align: left;
10-
z-index: 5;
10+
z-index: 4;
1111
padding: 8px 0px;
1212
font-size: 14px;
1313
top: calc(100% + 8px);

app/javascript/controllers/hovercard_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default class extends Controller {
2727
}
2828
}
2929

30-
hide(e) {
30+
hide(event) {
3131
event.target.dataset.isHovering = false
3232

3333
if (this.hasCardTarget) {

0 commit comments

Comments
 (0)