Skip to content

Commit fdb466b

Browse files
committed
fix: remove corner player in entry column
1 parent 1182497 commit fdb466b

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

apps/renderer/src/modules/app-layout/entry-column/mobile.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useEffect, useState } from "react"
22

3-
import { useAudioPlayerAtomSelector } from "~/atoms/player"
43
import { useGeneralSettingKey } from "~/atoms/settings/general"
54
import { ROUTE_FEED_PENDING } from "~/constants/app"
65
import { ENTRY_COLUMN_LIST_SCROLLER_ID, LOGO_MOBILE_ID } from "~/constants/dom"
@@ -11,8 +10,6 @@ import { EntryColumn } from "~/modules/entry-column"
1110
import { MobileFloatBar } from "../feed-column/float-bar.mobile"
1211

1312
export const EntryColumnMobile = () => {
14-
const isShowingPlayer = useAudioPlayerAtomSelector((v) => v.show)
15-
1613
const isStartupTimeline = useGeneralSettingKey("startupScreen") === "timeline"
1714

1815
const [scrollContainer, setScrollContainer] = useState<null | HTMLDivElement>(null)
@@ -31,7 +28,6 @@ export const EntryColumnMobile = () => {
3128

3229
{isStartupTimeline && (
3330
<MobileFloatBar
34-
className={isShowingPlayer ? "!bottom-safe-offset-28" : "!bottom-safe-offset-10"}
3531
scrollContainer={scrollContainer}
3632
onLogoClick={() => {
3733
;(document.querySelector(`#${LOGO_MOBILE_ID}`) as HTMLElement)?.click()

apps/renderer/src/modules/app-layout/feed-column/float-bar.mobile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const PlayerIcon = () => {
152152
</button>
153153

154154
{isShowPlayer && (
155-
<CornerPlayer className="absolute bottom-12 left-0 w-full max-w-[350px] overflow-hidden rounded-r-lg" />
155+
<CornerPlayer className="absolute inset-x-0 bottom-12 mx-auto w-full max-w-[350px] overflow-hidden rounded-lg" />
156156
)}
157157
</>
158158
)

apps/renderer/src/modules/entry-column/wrapper.mobile.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { forwardRef, useState } from "react"
66
import { PullToRefresh } from "~/components/ux/pull-to-refresh"
77
import { useRouteParamsSelector } from "~/hooks/biz/useRouteParams"
88

9-
import { CornerPlayer } from "../player/corner-player"
109
import type { EntryColumnWrapperProps } from "./wrapper.shared"
1110
import { styles } from "./wrapper.shared"
1211

@@ -28,8 +27,6 @@ export const EntryColumnWrapper = forwardRef<HTMLDivElement, EntryColumnWrapperP
2827
</ScrollElementContext.Provider>
2928
</PullToRefresh>
3029
</div>
31-
32-
<CornerPlayer className="w-full !mb-safe md:w-[350px]" />
3330
</div>
3431
)
3532
},

0 commit comments

Comments
 (0)