@@ -5,9 +5,8 @@ import { RotatingRefreshIcon } from "@follow/components/ui/loading/index.jsx"
5
5
import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/index.js"
6
6
import { FeedViewType , views } from "@follow/constants"
7
7
import { useIsOnline } from "@follow/hooks"
8
- import { IN_ELECTRON } from "@follow/shared/constants"
9
8
import { stopPropagation } from "@follow/utils/dom"
10
- import { cn , getOS , isBizId } from "@follow/utils/utils"
9
+ import { cn , isBizId } from "@follow/utils/utils"
11
10
import type { FC } from "react"
12
11
import * as React from "react"
13
12
import { useTranslation } from "react-i18next"
@@ -20,6 +19,7 @@ import {
20
19
useSetZenMode ,
21
20
useUISettingKey ,
22
21
} from "~/atoms/settings/ui"
22
+ import { useFeedColumnShow } from "~/atoms/sidebar"
23
23
import { useWhoami } from "~/atoms/user"
24
24
import { ImpressionView } from "~/components/common/ImpressionTracker"
25
25
import { FEED_COLLECTION_LIST , ROUTE_ENTRY_PENDING , ROUTE_FEED_IN_LIST } from "~/constants"
@@ -46,14 +46,12 @@ export const EntryListHeader: FC<{
46
46
const { feedId, entryId, view, listId } = routerParams
47
47
48
48
const headerTitle = useFeedHeaderTitle ( )
49
- const os = getOS ( )
50
49
51
- const titleAtBottom = IN_ELECTRON && os === "macOS"
52
50
const isInCollectionList =
53
51
feedId === FEED_COLLECTION_LIST || feedId ?. startsWith ( ROUTE_FEED_IN_LIST )
54
52
55
53
const titleInfo = ! ! headerTitle && (
56
- < div className = { ! titleAtBottom ? "min-w-0 translate-y-1" : void 0 } >
54
+ < div className = { "min-w-0 translate-y-1" } >
57
55
< div className = "h-6 min-w-0 break-all text-lg font-bold leading-tight" >
58
56
< EllipsisHorizontalTextWithTooltip className = "inline-block !w-auto max-w-full" >
59
57
< span className = "relative -top-px" > { headerTitle } </ span >
@@ -78,17 +76,18 @@ export const EntryListHeader: FC<{
78
76
const containerRef = React . useRef < HTMLDivElement > ( null )
79
77
const titleStyleBasedView = [ "pl-6" , "pl-7" , "pl-7" , "pl-7" , "px-5" , "pl-6" ]
80
78
79
+ const feedColumnShow = useFeedColumnShow ( )
81
80
return (
82
81
< div
83
82
ref = { containerRef }
84
83
className = { cn (
85
84
"mb-2 flex w-full flex-col pr-4 pt-2.5 transition-[padding] duration-300 ease-in-out" ,
85
+ ! feedColumnShow && "macos:mt-4 macos:pt-margin-macos-traffic-light-y" ,
86
86
titleStyleBasedView [ view ] ,
87
87
) }
88
88
>
89
- < div className = { cn ( "flex w-full" , titleAtBottom ? "justify-end" : "justify-between" ) } >
90
- { ! titleAtBottom && titleInfo }
91
-
89
+ < div className = { "flex w-full justify-between" } >
90
+ { titleInfo }
92
91
< div
93
92
className = { cn (
94
93
"relative z-[1] flex items-center gap-1 self-baseline text-zinc-500" ,
@@ -163,7 +162,7 @@ export const EntryListHeader: FC<{
163
162
) }
164
163
</ div >
165
164
</ div >
166
- { titleAtBottom && titleInfo }
165
+
167
166
{ /* <TimelineTabs /> */ }
168
167
</ div >
169
168
)
0 commit comments