Fix smart annotation position

This commit is contained in:
aignatov-bio 2020-01-17 13:55:43 +01:00
parent d32201ad58
commit 597c88cacc
2 changed files with 4 additions and 0 deletions

View file

@ -384,6 +384,9 @@ var SmartAnnotation = (function() {
if (query.$inputor.offset().left > $(window).width()) {
query.$el.find('.atwho-view').css('left', (flag.left + $(window).scrollLeft()) + 'px');
}
if ($('.repository-show').length) {
query.$el.find('.atwho-view').css('top', flag.top + 'px');
}
})
.atwho({
at: '@',

View file

@ -15,6 +15,7 @@
border-bottom: 2px solid $color-white;
border-left: 2px solid $color-white;
font-weight: bold;
overflow: hidden;
white-space: nowrap;
.modal-tooltiptext {