chore: update

This commit is contained in:
Stephen Zhou
2024-11-25 18:36:57 +08:00
parent f476483fe3
commit 42ccdeaf29
@@ -63,7 +63,8 @@ const FeedItemImpl = ({ view, feedId, className }: FeedItemProps) => {
const draggableContext = useContext(DraggableContext)
const isMobile = useMobile()
const isInMultipleSelection = !isMobile && selectedFeedIds.includes(feedId)
const isMultiSelectingButNotSelected = selectedFeedIds.length > 0 && !isInMultipleSelection
const isMultiSelectingButNotSelected =
!isMobile && selectedFeedIds.length > 0 && !isInMultipleSelection
const handleClick: React.MouseEventHandler<HTMLDivElement> = useCallback(
(e) => {
@@ -151,7 +152,7 @@ const FeedItemImpl = ({ view, feedId, className }: FeedItemProps) => {
style={isInMultipleSelection ? draggableContext?.style : undefined}
data-feed-id={feedId}
data-active={
!isMobile && isMultiSelectingButNotSelected
isMultiSelectingButNotSelected
? false
: isActive || isContextMenuOpen || isInMultipleSelection
}