Skip to content

Commit

Permalink
feat: expand collapse category by double-clicking (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
Przeblysk authored Oct 17, 2024
1 parent 9d5f2c9 commit a44fe98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/renderer/src/modules/feed-column/category.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function FeedCategoryImpl({ data: ids, view, categoryOpenStateData }: FeedCatego

const itemsRef = useRef<HTMLDivElement>(null)

const toggleCategoryOpenState = (e: React.MouseEvent<HTMLButtonElement>) => {
const toggleCategoryOpenState = (e: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) => {
e.stopPropagation()
if (!isCategoryEditing) {
setCategoryActive()
Expand Down Expand Up @@ -256,7 +256,7 @@ function FeedCategoryImpl({ data: ids, view, categoryOpenStateData }: FeedCatego
)
}}
>
<div className="flex w-full min-w-0 items-center">
<div className="flex w-full min-w-0 items-center" onDoubleClick={toggleCategoryOpenState}>
<button
type="button"
onClick={toggleCategoryOpenState}
Expand Down

0 comments on commit a44fe98

Please sign in to comment.