From 817ec13d6f9efc105712cae332cc9f1ad512011b Mon Sep 17 00:00:00 2001 From: Chandragupt Singh Date: Thu, 17 Jul 2025 06:06:08 +0530 Subject: [PATCH] fix: align sidebar toggle bottom border with navbar (#1864) fix: resolve lint errors and fallback to any for HammerInput type --- dump.rdb | Bin 0 -> 88 bytes src/components/Appbar.tsx | 2 +- src/components/VideoPlayer2.tsx | 4 ++-- src/components/posts/form/form-vote.tsx | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 dump.rdb diff --git a/dump.rdb b/dump.rdb new file mode 100644 index 0000000000000000000000000000000000000000..a964c370b86e99a549ce5bd06b2964e121d307af GIT binary patch literal 88 zcmWG?b@2=~FfcUy#aWb^l3A= { className="fixed left-0 top-0 z-[999] hidden h-full flex-col border-r border-primary/10 bg-background dark:bg-background lg:flex min-w-16" >
-
+
= ({ }; const setupZoomFeatures = (player: any) => { - if (typeof window === 'undefined' || typeof document === 'undefined') return; const videoEl = player.el().querySelector('video'); @@ -166,7 +165,8 @@ export const VideoPlayer: FunctionComponent = ({ })(); // Unified gesture handler - const handleGestureControl = (e: HammerInput) => { + // @ts-expect-error: HammerInput type not exported in hammerjs; fallback to any for now + const handleGestureControl = (e: any) => { const target = e.srcEvent.target as HTMLElement; const isControlBar = target.closest('.vjs-control-bar'); diff --git a/src/components/posts/form/form-vote.tsx b/src/components/posts/form/form-vote.tsx index 1ac4cfcbc..77a48e5bf 100644 --- a/src/components/posts/form/form-vote.tsx +++ b/src/components/posts/form/form-vote.tsx @@ -54,7 +54,6 @@ const VoteForm: React.FC = ({ ); }; - const userVoted = Boolean(votesArr.length); const userVoteVal = votesArr[0];