From a5f436e75918bc655117428148c2e59889a7f4b8 Mon Sep 17 00:00:00 2001 From: Yan Date: Tue, 2 Jan 2024 17:32:56 +0300 Subject: [PATCH] Refer to stackoverflow for prev commit --- src/features/expandos/css/indent.css | 0 src/features/posts/indentCommentHide.ts | 2 +- src/features/posts/index.ts | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 src/features/expandos/css/indent.css diff --git a/src/features/expandos/css/indent.css b/src/features/expandos/css/indent.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/features/posts/indentCommentHide.ts b/src/features/posts/indentCommentHide.ts index 0ac67ed..eec070d 100644 --- a/src/features/posts/indentCommentHide.ts +++ b/src/features/posts/indentCommentHide.ts @@ -1,6 +1,6 @@ import { OLFeature } from "../base" -// +// modified ver of https://stackoverflow.com/questions/7462712/detecting-click-event-on-padding-only function isMarginClick(element: HTMLElement, e: MouseEvent) { var style = window.getComputedStyle(element, null); var pTop = parseInt( style.getPropertyValue('margin-top') ); diff --git a/src/features/posts/index.ts b/src/features/posts/index.ts index 7b0cb39..c8cc916 100644 --- a/src/features/posts/index.ts +++ b/src/features/posts/index.ts @@ -3,7 +3,6 @@ import "./css/postIcons.css"; import setupPostContainer from "./postContainer"; import setupExpando from "./expando"; import setupExpandoButton from "./expandoButton"; -import setupNativeShare from "./nativeSharing"; import setupToggles from "./postToggles"; import { OLFeature } from "../base"; import NativeShare from "./nativeSharing";