Skip to content

Commit 817ec13

Browse files
committed
fix: align sidebar toggle bottom border with navbar (#1864)
fix: resolve lint errors and fallback to any for HammerInput type
1 parent f4a9673 commit 817ec13

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

dump.rdb

88 Bytes
Binary file not shown.

src/components/Appbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const Appbar = () => {
8888
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"
8989
>
9090
<div className="flex h-full flex-col gap-4">
91-
<div className="flex w-full items-center border-b border-primary/10 px-2 py-4">
91+
<div className="flex w-full items-center border-b border-primary/10 px-2 py-3">
9292
<div>
9393
<motion.button
9494
onClick={toggleCollapse}

src/components/VideoPlayer2.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ export const VideoPlayer: FunctionComponent<VideoPlayerProps> = ({
111111
};
112112

113113
const setupZoomFeatures = (player: any) => {
114-
115114
if (typeof window === 'undefined' || typeof document === 'undefined') return;
116115

117116
const videoEl = player.el().querySelector('video');
@@ -166,7 +165,8 @@ export const VideoPlayer: FunctionComponent<VideoPlayerProps> = ({
166165
})();
167166

168167
// Unified gesture handler
169-
const handleGestureControl = (e: HammerInput) => {
168+
// @ts-expect-error: HammerInput type not exported in hammerjs; fallback to any for now
169+
const handleGestureControl = (e: any) => {
170170
const target = e.srcEvent.target as HTMLElement;
171171
const isControlBar = target.closest('.vjs-control-bar');
172172

src/components/posts/form/form-vote.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ const VoteForm: React.FC<IVoteFormProps> = ({
5454
);
5555
};
5656

57-
5857
const userVoted = Boolean(votesArr.length);
5958
const userVoteVal = votesArr[0];
6059

0 commit comments

Comments
 (0)