Skip to content

Commit

Permalink
Fixed profile page wrapping layout (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebjacob authored Jan 16, 2024
1 parent a384704 commit 43c1197
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ProfileEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ return (
</div>
<div className="col-lg-6">
<div>
<Widget src="${REPL_ACCOUNT}/widget/ProfilePage" props={{ accountId, profile: state.profile }} />
<Widget src="${REPL_ACCOUNT}/widget/ProfilePage" props={{ accountId, profile: state.profile, stack: true }} />
</div>
</div>
</div>
Expand Down
11 changes: 6 additions & 5 deletions src/ProfilePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ const Wrapper = styled.div`
`;

const Main = styled.div`
display: flex;
flex-wrap: wrap;
display: grid;
grid-template-columns: ${props.stack ? "minmax(0, 1fr)" : "min-content minmax(0, 1fr)"};
gap: 40px;
@media (max-width: 1024px) {
grid-template-columns: minmax(0, 1fr);
}
`;

const BackgroundImage = styled.div`
Expand Down Expand Up @@ -79,9 +83,6 @@ const SidebarWrapper = styled.div`
`;

const Content = styled.div`
min-width: fit-content;
flex-grow: 1;
.post {
padding-left: 0;
padding-right: 0;
Expand Down

0 comments on commit 43c1197

Please sign in to comment.