mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-10 22:25:59 +08:00
Fix smart annotation position
This commit is contained in:
parent
d32201ad58
commit
597c88cacc
2 changed files with 4 additions and 0 deletions
|
|
@ -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: '@',
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue