Skip to content

Commit 5635255

Browse files
committed
[PAY-3519] Fix mobile ChatBlastSubHeader opacity
1 parent 6401b5c commit 5635255

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/mobile/src/screens/chat-screen/ChatBlastSubHeader.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ import { useChatBlastAudienceContent } from '@audius/common/hooks'
22
import { SquareSizes } from '@audius/common/models'
33
import { decodeHashId } from '@audius/common/utils'
44
import type { ChatBlast } from '@audius/sdk'
5+
import { css } from '@emotion/native'
56

67
import { Flex, Text } from '@audius/harmony-native'
78
import { CollectionImageV2 } from 'app/components/image/CollectionImageV2'
89
import { TrackImageV2 } from 'app/components/image/TrackImageV2'
10+
import { zIndex } from 'app/utils/zIndex'
911

1012
export const ChatBlastSubHeader = ({ chat }: { chat: ChatBlast }) => {
1113
const {
@@ -16,7 +18,13 @@ export const ChatBlastSubHeader = ({ chat }: { chat: ChatBlast }) => {
1618
useChatBlastAudienceContent({ chat })
1719
const decodedId = decodeHashId(audienceContentId) ?? undefined
1820
return (
19-
<Flex row backgroundColor='white' justifyContent='center' pb='s'>
21+
<Flex
22+
row
23+
backgroundColor='white'
24+
justifyContent='center'
25+
pb='s'
26+
style={css({ zIndex: zIndex.CHAT_BLAST_SUBHEADER })}
27+
>
2028
{decodedId ? (
2129
<Flex row gap='xs'>
2230
{audienceContentType === 'track' ? (

packages/mobile/src/utils/zIndex.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-duplicate-enum-values */
22
export enum zIndex {
33
CHAT_TAIL = -10,
4+
CHAT_BLAST_SUBHEADER = 1,
45
NOW_PLAYING_DRAWER = 3,
56
DOG_EAR = 4,
67
PLAY_BAR = 5,

0 commit comments

Comments
 (0)