feat: Added above-keyboard toolbar to Super notes on mobile for formatting & selecting blocks (#2189)

This commit is contained in:
Aman Harwara
2023-02-01 13:59:51 +05:30
committed by GitHub
parent d33c737f86
commit 4a3f9f12e7
48 changed files with 629 additions and 183 deletions

View File

@@ -17,13 +17,6 @@ export function setFloatingElemPosition(
): void {
const scrollerElem = anchorElem.parentElement
const isMobileScreen = window.innerWidth < 768
if (isMobileScreen) {
floatingElem.style.opacity = '1'
return
}
if (targetRect === null || !scrollerElem) {
floatingElem.style.opacity = '0'
floatingElem.style.transform = 'translate(-10000px, -10000px)'