mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 02:46:43 -06:00
[Client] Refactor: Better variable name
This commit is contained in:
parent
16b0bb124b
commit
2d9dd2ea30
1 changed files with 4 additions and 4 deletions
|
@ -61,7 +61,7 @@ class Autocomplete {
|
||||||
this.close();
|
this.close();
|
||||||
|
|
||||||
// サジェスト要素作成
|
// サジェスト要素作成
|
||||||
const suggestion = document.createElement('mk-autocomplete-suggestion');
|
const tag = document.createElement('mk-autocomplete-suggestion');
|
||||||
|
|
||||||
// ~ サジェストを表示すべき位置を計算 ~
|
// ~ サジェストを表示すべき位置を計算 ~
|
||||||
|
|
||||||
|
@ -72,11 +72,11 @@ class Autocomplete {
|
||||||
const x = rect.left + window.pageXOffset + caretPosition.left;
|
const x = rect.left + window.pageXOffset + caretPosition.left;
|
||||||
const y = rect.top + window.pageYOffset + caretPosition.top;
|
const y = rect.top + window.pageYOffset + caretPosition.top;
|
||||||
|
|
||||||
suggestion.style.left = x + 'px';
|
tag.style.left = x + 'px';
|
||||||
suggestion.style.top = y + 'px';
|
tag.style.top = y + 'px';
|
||||||
|
|
||||||
// 要素追加
|
// 要素追加
|
||||||
const el = document.body.appendChild(suggestion);
|
const el = document.body.appendChild(tag);
|
||||||
|
|
||||||
// マウント
|
// マウント
|
||||||
this.suggestion = riot.mount(el, {
|
this.suggestion = riot.mount(el, {
|
||||||
|
|
Loading…
Reference in a new issue