mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Position onboarding popover after measuring position
This commit is contained in:
parent
3259b871c0
commit
7e407621e9
3 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
div.full-size.pdf(ng-controller="PdfController")
|
||||
.toolbar.toolbar-tall
|
||||
.btn-group(
|
||||
.btn-group#recompile(
|
||||
dropdown,
|
||||
tooltip-html="'"+translate('recompile_pdf')+" <span class=\"keyboard-shortcut\">({{modifierKey}} + Enter)</span>'"
|
||||
tooltip-class="keyboard-tooltip"
|
||||
|
|
|
@ -2,5 +2,12 @@ define [
|
|||
"base"
|
||||
], (App) ->
|
||||
App.controller "AutoCompileOnboardingController", ($scope) ->
|
||||
recompileBtn = angular.element('#recompile')
|
||||
{ top, left } = recompileBtn.offset()
|
||||
angular.element('.onboarding__autocompile').offset({
|
||||
top: top,
|
||||
left: left + 170
|
||||
})
|
||||
|
||||
$scope.dismiss = () ->
|
||||
$scope.onboarding.autoCompile = 'dismissed'
|
|
@ -103,7 +103,6 @@ a.feat-onboard-dismiss {
|
|||
.onboarding__autocompile {
|
||||
display: block;
|
||||
top: 10px;
|
||||
left: 694px;
|
||||
|
||||
.arrow {
|
||||
top: 17px !important;
|
||||
|
|
Loading…
Reference in a new issue