Skip to content

Commit 56a490c

Browse files
authored
Merge pull request #28 from NextStepFinalProject/NXD-27-Edit-feed-page-fixes
Nxd 27 edit feed page fixes
2 parents 0496ffd + deebd49 commit 56a490c

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

nextstep-frontend/src/components/NewPost.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,16 @@ const NewPostModal: React.FC<Props> = ({ open, onClose, onPostCreated }) => {
5050
maxWidth="md"
5151
sx={{
5252
mt: 10,
53-
backgroundColor: 'white',
53+
backgroundColor: 'background.paper',
5454
borderRadius: 2,
5555
p: 4,
5656
width: '40%',
5757
overflowY: 'auto',
5858
height: '80vh',
59+
color: 'text.primary',
5960
}}
6061
>
61-
<Typography variant="h5" gutterBottom>
62+
<Typography variant="h5" gutterBottom color="text.primary">
6263
Create New Post
6364
</Typography>
6465
<form onSubmit={handleSubmit}>
@@ -67,7 +68,17 @@ const NewPostModal: React.FC<Props> = ({ open, onClose, onPostCreated }) => {
6768
placeholder="Title"
6869
value={title}
6970
onChange={(e) => setTitle(e.target.value)}
70-
style={{ width: '100%', marginBottom: '1rem', padding: '10px', fontSize: '16px' }}
71+
style={{
72+
width: '100%',
73+
marginBottom: '1rem',
74+
padding: '10px',
75+
fontSize: '16px',
76+
backgroundColor: 'transparent',
77+
color: 'inherit',
78+
border: '1px solid',
79+
borderColor: 'divider',
80+
borderRadius: '4px',
81+
}}
7182
required
7283
/>
7384
<FroalaEditor

nextstep-frontend/src/pages/Feed.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ const Feed: React.FC = () => {
218218
<Avatar src={profileImages[auth.userId] || defaultProfileImage} sx={{ mr: 2 }} />
219219
<Box
220220
sx={{
221-
backgroundColor: '#f0f2f5',
221+
backgroundColor: 'background.paper',
222222
borderRadius: '20px',
223223
px: 2,
224224
py: 1,
225225
flexGrow: 1,
226226
}}
227227
>
228-
<Typography color="text.secondary">What's on your mind{', ' + auth.username || 'User'}?</Typography>
228+
<Typography color="text.primary" sx={{ opacity: 0.7 }}>What's on your mind{', ' + auth.username || 'User'}?</Typography>
229229
</Box>
230230
</Box>
231231
<Box sx={{ display: 'flex', justifyContent: 'space-around', mt: 2 }}>

nextstep-frontend/src/pages/PostDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ const PostDetails: React.FC = () => {
237237
<Typography color="error">{error}</Typography>
238238
) : (
239239
post && (
240-
<Paper sx={{ p: 4, width: '100%', height: '70vh', overflowY: 'auto', }}>
240+
<Paper sx={{ p: 4, width: '100%' }}>
241241
<Box sx={{ display: 'flex', alignItems: 'center', mb: 2 }}>
242242
<Avatar
243243
src={profileImage}

0 commit comments

Comments
 (0)