Skip to content

Commit 13bf797

Browse files
committed
make Popover positioning more flexible
1 parent 760ceb1 commit 13bf797

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

modules/primer-popover/lib/popover.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
.Popover {
22
position: absolute;
3-
right: 0;
4-
left: 0;
53
z-index: 100;
64
}
75

86
.Popover-message {
97
position: relative;
10-
max-width: 235px;
8+
width: 235px;
119
margin-right: auto;
1210
margin-left: auto;
1311

@@ -70,5 +68,8 @@
7068
}
7169

7270
.Popover-message--lg {
73-
max-width: 330px;
71+
72+
@include breakpoint(sm) {
73+
min-width: 330px;
74+
}
7475
}

0 commit comments

Comments
 (0)