@@ -5,9 +5,8 @@ import { RotatingRefreshIcon } from "@follow/components/ui/loading/index.jsx"
55import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/index.js"
66import { FeedViewType , views } from "@follow/constants"
77import { useIsOnline } from "@follow/hooks"
8- import { IN_ELECTRON } from "@follow/shared/constants"
98import { stopPropagation } from "@follow/utils/dom"
10- import { cn , getOS , isBizId } from "@follow/utils/utils"
9+ import { cn , isBizId } from "@follow/utils/utils"
1110import type { FC } from "react"
1211import * as React from "react"
1312import { useTranslation } from "react-i18next"
@@ -20,6 +19,7 @@ import {
2019 useSetZenMode ,
2120 useUISettingKey ,
2221} from "~/atoms/settings/ui"
22+ import { useFeedColumnShow } from "~/atoms/sidebar"
2323import { useWhoami } from "~/atoms/user"
2424import { ImpressionView } from "~/components/common/ImpressionTracker"
2525import { FEED_COLLECTION_LIST , ROUTE_ENTRY_PENDING , ROUTE_FEED_IN_LIST } from "~/constants"
@@ -46,14 +46,12 @@ export const EntryListHeader: FC<{
4646 const { feedId, entryId, view, listId } = routerParams
4747
4848 const headerTitle = useFeedHeaderTitle ( )
49- const os = getOS ( )
5049
51- const titleAtBottom = IN_ELECTRON && os === "macOS"
5250 const isInCollectionList =
5351 feedId === FEED_COLLECTION_LIST || feedId ?. startsWith ( ROUTE_FEED_IN_LIST )
5452
5553 const titleInfo = ! ! headerTitle && (
56- < div className = { ! titleAtBottom ? "min-w-0 translate-y-1" : void 0 } >
54+ < div className = { "min-w-0 translate-y-1" } >
5755 < div className = "h-6 min-w-0 break-all text-lg font-bold leading-tight" >
5856 < EllipsisHorizontalTextWithTooltip className = "inline-block !w-auto max-w-full" >
5957 < span className = "relative -top-px" > { headerTitle } </ span >
@@ -78,17 +76,18 @@ export const EntryListHeader: FC<{
7876 const containerRef = React . useRef < HTMLDivElement > ( null )
7977 const titleStyleBasedView = [ "pl-6" , "pl-7" , "pl-7" , "pl-7" , "px-5" , "pl-6" ]
8078
79+ const feedColumnShow = useFeedColumnShow ( )
8180 return (
8281 < div
8382 ref = { containerRef }
8483 className = { cn (
8584 "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" ,
8686 titleStyleBasedView [ view ] ,
8787 ) }
8888 >
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 }
9291 < div
9392 className = { cn (
9493 "relative z-[1] flex items-center gap-1 self-baseline text-zinc-500" ,
@@ -163,7 +162,7 @@ export const EntryListHeader: FC<{
163162 ) }
164163 </ div >
165164 </ div >
166- { titleAtBottom && titleInfo }
165+
167166 { /* <TimelineTabs /> */ }
168167 </ div >
169168 )
0 commit comments