Skip to content

Commit 1c8446c

Browse files
authored
[PE-6078] Add borders to remix contest info and comment sections (#11959)
1 parent 67ea24b commit 1c8446c

File tree

9 files changed

+28
-9
lines changed

9 files changed

+28
-9
lines changed

packages/mobile/src/components/comments/CommentPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export const CommentPreview = (props: CommentPreviewProps) => {
181181
>
182182
<Flex gap='s' direction='column' w='100%' alignItems='flex-start'>
183183
<CommentPreviewHeader openCommentDrawer={openCommentDrawer} />
184-
<Paper w='100%' direction='column' gap='s' p='l'>
184+
<Paper w='100%' direction='column' gap='s' p='l' border='default'>
185185
<CommentPreviewContent openCommentDrawer={openCommentDrawer} />
186186
</Paper>
187187
</Flex>

packages/mobile/src/screens/track-screen/RemixContestDetailsTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const RemixContestDetailsTab = ({ trackId, scrollRef }: Props) => {
3333
if (!remixContest) return null
3434

3535
return (
36-
<Flex column gap='s' p='xl' borderTop='default'>
36+
<Flex column gap='s' p='xl' pb='2xl' borderTop='default'>
3737
<Flex row gap='s'>
3838
<Text variant='title' color='accent'>
3939
{messages.due}

packages/mobile/src/screens/track-screen/RemixContestPrizesTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const RemixContestPrizesTab = ({ trackId }: Props) => {
1717
if (!remixContest) return null
1818

1919
return (
20-
<Flex p='xl' borderTop='default'>
20+
<Flex p='xl' pb='2xl' borderTop='default'>
2121
<UserGeneratedText variant='body' size='l'>
2222
{remixContest.eventData?.prizeInfo ?? ''}
2323
</UserGeneratedText>

packages/mobile/src/screens/track-screen/RemixContestSection.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const useStyles = makeStyles(({ palette, typography, spacing }) => ({
3232
height: spacing(10)
3333
},
3434
tabLabel: {
35+
marginHorizontal: 0,
3536
textTransform: 'none',
3637
fontFamily: typography.fontByWeight.demiBold,
3738
fontSize: typography.fontSize.medium
@@ -185,7 +186,11 @@ export const RemixContestSection = ({
185186
if (!remixContest) return null
186187

187188
return (
188-
<AnimatedPaper backgroundColor='white' style={animatedStyle}>
189+
<AnimatedPaper
190+
backgroundColor='white'
191+
border='default'
192+
style={animatedStyle}
193+
>
189194
<TabView
190195
navigationState={{ index, routes }}
191196
renderScene={renderScene}

packages/mobile/src/screens/track-screen/RemixContestSubmissionsTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const RemixContestSubmissions = ({
119119
const navigation = useNavigation()
120120

121121
return (
122-
<Flex w='100%' column gap='2xl' pv='xl' ph='l' borderTop='default'>
122+
<Flex w='100%' column gap='2xl' pt='xl' pb='2xl' ph='l' borderTop='default'>
123123
<Flex gap='2xl' wrap='wrap'>
124124
{submissions.map((submission) => (
125125
<SubmissionCard key={submission.id} submission={submission} />

packages/web/src/components/comments/CommentPreview.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const CommentPreviewContent = () => {
8484
// Loading state
8585
if (isLoading) {
8686
return (
87-
<Paper w='100%' direction='column' gap='s' p='l'>
87+
<Paper w='100%' direction='column' gap='s' p='l' border='default'>
8888
<Flex direction='row' gap='s' alignItems='center'>
8989
<Skeleton w={40} h={40} css={{ borderRadius: 100 }} />
9090
<Flex gap='s' direction='column'>
@@ -99,7 +99,7 @@ const CommentPreviewContent = () => {
9999
// Empty state
100100
if (!commentIds || !commentIds.length) {
101101
return (
102-
<Paper w='100%' direction='column' gap='s' p='l'>
102+
<Paper w='100%' direction='column' gap='s' p='l' border='default'>
103103
<Flex gap='m' column alignItems='flex-start'>
104104
<Text variant='body'>{messages.noComments}</Text>
105105
<CommentForm hideAvatar={!currentUserId} />
@@ -109,7 +109,14 @@ const CommentPreviewContent = () => {
109109
}
110110

111111
return (
112-
<Paper w='100%' direction='column' gap='s' p='l' onClick={handleClick}>
112+
<Paper
113+
w='100%'
114+
direction='column'
115+
gap='s'
116+
p='l'
117+
border='default'
118+
onClick={handleClick}
119+
>
113120
<CommentBlock commentId={commentIds[0]} isPreview />
114121
</Paper>
115122
)

packages/web/src/components/comments/CommentSection.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ const CommentSectionInner = (props: CommentSectionInnerProps) => {
114114
ref={commentSectionRef}
115115
>
116116
<CommentHeader />
117-
<Paper w='100%' direction='column' css={{ overflow: 'visible' }}>
117+
<Paper
118+
w='100%'
119+
direction='column'
120+
css={{ overflow: 'visible' }}
121+
border='default'
122+
>
118123
{commentPostAllowed ? (
119124
<>
120125
<Flex gap='s' p='xl' w='100%' direction='column'>

packages/web/src/pages/track-page/components/desktop/RemixContestSection.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export const RemixContestSection = ({
119119
backgroundColor='white'
120120
shadow='mid'
121121
borderRadius='l'
122+
border='default'
122123
css={{
123124
transition: motion.quick,
124125
overflow: 'hidden',

packages/web/src/pages/track-page/components/mobile/remix-contests/RemixContestSection.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export const RemixContestSection = ({
7878
backgroundColor='white'
7979
shadow='mid'
8080
borderRadius='l'
81+
border='default'
8182
css={{ overflow: 'hidden' }}
8283
>
8384
<Flex column pv='m'>

0 commit comments

Comments
 (0)