Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 047c7da

Browse files
center edit text for image and text posts
1 parent 12c5a56 commit 047c7da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/components/ImagePost.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const ImagePost = ({title, body, datePosted, image, previewImage, liked, publicI
139139
<h3>{profileName}</h3>
140140
{(edited || typeof editNumber === 'number') &&
141141
<div style={{border: `1px solid ${colors.tertiary}`, borderRadius: 20, display: 'flex', justifyContent: 'center', alignItems: 'center', padding: '15px 15px', marginLeft: 10, cursor: disableFunctionality ? 'initial' : 'pointer'}} onClick={() => disableFunctionality ? null : navigate(`/historyviewer/${postId}/image`)}>
142-
<p style={{color: colors.tertiary, fontWeight: 'bold', textDecorationColor: colors.tertiary, textDecorationStyle: 'solid', margin: 0, textDecorationThickness: 1, textDecorationLine: disableFunctionality ? 'none' : 'underline'}}>{typeof editNumber === 'number' ? editNumber === 0 ? 'Original Post' : `Edit #${editNumber}` : `Edited ${timesEdited} ${timesEdited === 1 ? 'time' : 'times'}`}</p>
142+
<p style={{color: colors.tertiary, fontWeight: 'bold', textDecorationColor: colors.tertiary, textDecorationStyle: 'solid', margin: 0, textDecorationThickness: 1, textDecorationLine: disableFunctionality ? 'none' : 'underline', textAlign: 'center'}}>{typeof editNumber === 'number' ? editNumber === 0 ? 'Original Post' : `Edit #${editNumber}` : `Edited ${timesEdited} ${timesEdited === 1 ? 'time' : 'times'}`}</p>
143143
</div>
144144
}
145145
</div>

frontend/src/components/TextPost.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const TextPost = ({title, body, datePosted, liked, publicId, postId, dispatch, u
142142
<h3 style={{marginLeft: 10}}>{profileName}</h3>
143143
{(edited || typeof editNumber === 'number') &&
144144
<div style={{border: `1px solid ${colors.tertiary}`, borderRadius: 20, display: 'flex', justifyContent: 'center', alignItems: 'center', padding: '15px 15px', marginLeft: 10, cursor: disableFunctionality ? 'initial' : 'pointer'}} onClick={() => disableFunctionality ? null : navigate(`/historyviewer/${postId}/text`)}>
145-
<p style={{color: colors.tertiary, fontWeight: 'bold', textDecorationColor: colors.tertiary, textDecorationStyle: 'solid', margin: 0, textDecorationThickness: 1, textDecorationLine: disableFunctionality ? 'none' : 'underline'}}>{typeof editNumber === 'number' ? editNumber === 0 ? 'Original Post' : `Edit #${editNumber}` : `Edited ${timesEdited} ${timesEdited === 1 ? 'time' : 'times'}`}</p>
145+
<p style={{color: colors.tertiary, fontWeight: 'bold', textDecorationColor: colors.tertiary, textDecorationStyle: 'solid', margin: 0, textDecorationThickness: 1, textDecorationLine: disableFunctionality ? 'none' : 'underline', textAlign: 'center'}}>{typeof editNumber === 'number' ? editNumber === 0 ? 'Original Post' : `Edit #${editNumber}` : `Edited ${timesEdited} ${timesEdited === 1 ? 'time' : 'times'}`}</p>
146146
</div>
147147
}
148148
</div>

0 commit comments

Comments
 (0)