mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Place the linksharing popover from the right, not the left.
This ensures the popover reflows properly with window resize.
This commit is contained in:
parent
faf6178fa8
commit
42c0974671
2 changed files with 6 additions and 3 deletions
|
@ -15,7 +15,7 @@ define [
|
|||
offset = shareBtn.offset()
|
||||
popover.show()
|
||||
$scope.placement = 'bottom'
|
||||
popover.offset({
|
||||
top: offset.top + 11 + shareBtn.height(),
|
||||
left: offset.left - 180
|
||||
popover.css({
|
||||
top: '' + (2) + 'px',
|
||||
right: '' + (window.innerWidth - offset.left - (shareBtn.width() * 1.5) ) + 'px'
|
||||
})
|
||||
|
|
|
@ -147,6 +147,9 @@ a.feat-onboard-dismiss {
|
|||
.onboarding-linksharing {
|
||||
display: block;
|
||||
top: 10px;
|
||||
&.popover {
|
||||
left: auto !important;
|
||||
}
|
||||
|
||||
img {
|
||||
margin-bottom: 10px;
|
||||
|
|
Loading…
Reference in a new issue