File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
apps/desktop/layer/renderer/src/pages/(main)/(layer)/(subview)/discover/category Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { Input } from "@follow/components/ui/input/Input.js"
4
4
import { LoadingCircle } from "@follow/components/ui/loading/index.js"
5
5
import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/EllipsisWithTooltip.js"
6
6
import { CategoryMap , RSSHubCategories } from "@follow/constants"
7
+ import { cn } from "@follow/utils/utils"
7
8
import { keepPreviousData } from "@tanstack/react-query"
8
9
import { useMemo , useState } from "react"
9
10
import { useTranslation } from "react-i18next"
@@ -203,9 +204,10 @@ const RecommendationListItem = ({
203
204
< Link
204
205
to = { `/discover/category/${ c } ` }
205
206
key = { c }
206
- className = { `bg-accent/10 flex cursor-pointer items-center rounded-full px-2 py-0.5 duration-200 ${
207
- ! RSSHubCategories . includes ( c ) ? "pointer-events-none opacity-50" : ""
208
- } `}
207
+ className = { cn (
208
+ "bg-accent/10 cursor-pointer rounded-full px-2 py-0.5 leading-5 duration-200" ,
209
+ ! RSSHubCategories . includes ( c ) ? "pointer-events-none opacity-50" : "" ,
210
+ ) }
209
211
>
210
212
{ RSSHubCategories . includes ( c )
211
213
? t ( `discover.category.${ c } ` , { ns : "common" } )
You can’t perform that action at this time.
0 commit comments