mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-17 14:19:05 +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()) {
|
if (query.$inputor.offset().left > $(window).width()) {
|
||||||
query.$el.find('.atwho-view').css('left', (flag.left + $(window).scrollLeft()) + 'px');
|
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({
|
.atwho({
|
||||||
at: '@',
|
at: '@',
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
border-bottom: 2px solid $color-white;
|
border-bottom: 2px solid $color-white;
|
||||||
border-left: 2px solid $color-white;
|
border-left: 2px solid $color-white;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
.modal-tooltiptext {
|
.modal-tooltiptext {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue