Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
Quickfix: Post style
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschwinghammer committed Jun 11, 2024
1 parent 19f0de5 commit 14ec4df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/web/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const config = {
apiUrl: 'https://56e66ce8-2ac2-4635-982a-f19f20896303.ka.bw-cloud-instance.org:8443/',
googleClientId: '973066251162-r60h517iddja3k756d2f6n8sng5nn24q.apps.googleusercontent.com',
tooltipMessage: "Please sign up or log in to use this feature",
adsOn: false,
adsOn: true,
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
Expand Down
1 change: 0 additions & 1 deletion src/main/web/src/scenes/Home/components/post/Post.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@

.home-post-interaction {
position: relative;
margin-top: 110px;
margin-right: 20px;
}

Expand Down
10 changes: 6 additions & 4 deletions src/main/web/src/scenes/Home/components/post/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const Post: React.FC<PostModel> = (props: PostModel) => {
setMarginLeft(tags ? '110px' : '0');
setMarginTop(postImage ? '140px' : '5px');
} else {
setWidth(postImage ? '330px' : '600px');
setWidth(postImage ? '360px' : '600px');
setMarginLeft(postImage ? (imageWidth ? `${imageWidth + 20}px` : '280px') : '10px');
setMarginTop('0');
}
Expand Down Expand Up @@ -211,21 +211,23 @@ export const Post: React.FC<PostModel> = (props: PostModel) => {
&nbsp;· {formattedTime}
</div>
</div>
<div className="home-post-interaction">
<div className="home-post-interaction"
style={{marginTop: `${parseInt(marginTop as string) + 110}px`}}>
<Interaction
likes={likes}
userLiked={userLiked}
heartClass={heartClass}
comments={comments}
handleLike={() => handleLike(id, "post", likes, setLikes, setUserLiked, setHeartClass)}
id={id}
isHomepage={true}/>
isHomepage={true}
/>
</div>
</div>

{menuOpen && (
<div className="post-menu-container">
<PostMenu
<PostMenu
handleShareClick={handleShareClick}
handleSaveClick={handleSaveClick}
handleUnsaveClick={handleUnsaveClick}
Expand Down

0 comments on commit 14ec4df

Please sign in to comment.