Skip to content

Commit

Permalink
Remain author section kbar button size and Update header word break a…
Browse files Browse the repository at this point in the history
…ttr (#105)

* design: append flex-grow at author section's kbar button

* design: append break-word at main header

* design: append break-word at post header
  • Loading branch information
hyesungoh authored Jul 23, 2022
1 parent 534ef2d commit 5a8a77c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/blog/src/components/AuthorSection/AuthorSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ function AuthorSection({ marginBottom = '3.5rem', hasKbarButton = false }: Props
</TextWrapper>
</Div>

{hasKbarButton && <KBarToggleButton />}
{hasKbarButton && (
<KbarButtonWrapper>
<KBarToggleButton />
</KbarButtonWrapper>
)}
</Section>
);
}
Expand Down Expand Up @@ -62,3 +66,7 @@ const TextWrapper = styled.div`
const H2 = styled.h2`
font-weight: normal;
`;

const KbarButtonWrapper = styled.div`
flex-grow: 1;
`;
1 change: 1 addition & 0 deletions apps/blog/src/components/Header/MainHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const Header = styled.header`
justify-content: space-between;
align-items: flex-end;
margin-bottom: 0.875rem;
word-break: break-word;
`;

const H1 = styled(Text)`
Expand Down
1 change: 1 addition & 0 deletions apps/blog/src/components/Header/PostHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const Header = styled.header`
justify-content: space-between;
align-items: center;
margin-bottom: 2.25rem;
word-break: break-word;
`;

const H3 = styled(Text)`
Expand Down

2 comments on commit 5a8a77c

@vercel
Copy link

@vercel vercel bot commented on 5a8a77c Jul 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

comet-land-resume – ./apps/resume

comet-land-resume-git-main-hyesungoh.vercel.app
comet-land-resume-hyesungoh.vercel.app
comet-land-resume.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5a8a77c Jul 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

comet-land-blog – ./apps/blog

comet-land-blog.vercel.app
comet-land-blog-hyesungoh.vercel.app
comet-land-blog-git-main-hyesungoh.vercel.app

Please sign in to comment.