Skip to content

Commit a44fe98

Browse files
authored
feat: expand collapse category by double-clicking (#995)
1 parent 9d5f2c9 commit a44fe98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/renderer/src/modules/feed-column/category.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function FeedCategoryImpl({ data: ids, view, categoryOpenStateData }: FeedCatego
102102

103103
const itemsRef = useRef<HTMLDivElement>(null)
104104

105-
const toggleCategoryOpenState = (e: React.MouseEvent<HTMLButtonElement>) => {
105+
const toggleCategoryOpenState = (e: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) => {
106106
e.stopPropagation()
107107
if (!isCategoryEditing) {
108108
setCategoryActive()
@@ -256,7 +256,7 @@ function FeedCategoryImpl({ data: ids, view, categoryOpenStateData }: FeedCatego
256256
)
257257
}}
258258
>
259-
<div className="flex w-full min-w-0 items-center">
259+
<div className="flex w-full min-w-0 items-center" onDoubleClick={toggleCategoryOpenState}>
260260
<button
261261
type="button"
262262
onClick={toggleCategoryOpenState}

0 commit comments

Comments
 (0)