diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-03-02 18:40:43 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-03-02 18:40:43 +0900 |
| commit | dad915e5221d99ceeb7b35b3ca1cbbf52a02f0f3 (patch) | |
| tree | c5c4929517170ab187c0cc459e27f885ca1baca4 /packages/frontend/src/components/MkNote.vue | |
| parent | refactor(frontend): add explicit `Promise<void>` return types in `os.ts` (#10... (diff) | |
| download | sharkey-dad915e5221d99ceeb7b35b3ca1cbbf52a02f0f3.tar.gz sharkey-dad915e5221d99ceeb7b35b3ca1cbbf52a02f0f3.tar.bz2 sharkey-dad915e5221d99ceeb7b35b3ca1cbbf52a02f0f3.zip | |
enhance(client): provide sticktyFooter
Diffstat (limited to 'packages/frontend/src/components/MkNote.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNote.vue | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index b87d46ee94..bb1269562d 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -289,12 +289,12 @@ function renote(viaKeyboard = false) { icon: 'ti ti-repeat', action: () => { const el = renoteButton.value as HTMLElement | null | undefined; - if (el) { - const rect = el.getBoundingClientRect(); - const x = rect.left + (el.offsetWidth / 2); - const y = rect.top + (el.offsetHeight / 2); - os.popup(MkRippleEffect, { x, y }, {}, 'end'); - } + if (el) { + const rect = el.getBoundingClientRect(); + const x = rect.left + (el.offsetWidth / 2); + const y = rect.top + (el.offsetHeight / 2); + os.popup(MkRippleEffect, { x, y }, {}, 'end'); + } os.api('notes/create', { renoteId: appearNote.id, @@ -622,9 +622,9 @@ function showReactions(): void { .showLess { width: 100%; - margin-top: 1em; + margin-top: 14px; position: sticky; - bottom: 1em; + bottom: calc(var(--stickyBottom, 0px) + 14px); } .showLessLabel { |