Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: wrong position of UsageStatItem's popup (#1647)

Athurg Gooth218009a5ec2a
diff --git a/web/src/helpers/utils.ts b/web/src/helpers/utils.ts
index ff2b3d31b..629ea0f91 100644
--- a/web/src/helpers/utils.ts
+++ b/web/src/helpers/utils.ts
@@ -46,7 +46,8 @@ export const getElementBounding = (element: HTMLElement, relativeEl?: HTMLElemen
return false;
}
- if (window.getComputedStyle(element).getPropertyValue("position") === "fixed") {
+ const position = window.getComputedStyle(element).getPropertyValue("position");
+ if (position === "fixed" || position === "static") {
return true;
}