mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
chore: improve reaction picker behaviour
This commit is contained in:
parent
d9710cb5c5
commit
99019c42d1
1 changed files with 2 additions and 0 deletions
|
@ -135,6 +135,8 @@ export default defineComponent({
|
||||||
|
|
||||||
if (top > rect.top + (this.fixed ? 0 : window.pageYOffset)) {
|
if (top > rect.top + (this.fixed ? 0 : window.pageYOffset)) {
|
||||||
this.transformOrigin = 'center top';
|
this.transformOrigin = 'center top';
|
||||||
|
} else {
|
||||||
|
this.transformOrigin = 'center';
|
||||||
}
|
}
|
||||||
|
|
||||||
popover.style.left = left + 'px';
|
popover.style.left = left + 'px';
|
||||||
|
|
Loading…
Add table
Reference in a new issue