mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user