Skip to content

Commit

Permalink
Merge pull request #786 from Journaly/modal-improvements
Browse files Browse the repository at this point in the history
πŸ“ Modal Design Improvements ✐
  • Loading branch information
robin-macpherson authored May 11, 2022
2 parents eef6251 + ec23b1f commit 239128e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 5 additions & 2 deletions packages/web/components/Modal/ModalBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ const ModalBody: React.FC<Props> = (props) => {
}
@media (min-width: ${modalConstants.modalBreakpoint}) {
#modal-body {
padding: 0 64px 64px;
padding: 0 40px 40px;
}
}
h1 {
margin-bottom: 16px;
${theme.typography.headingXL};
${theme.typography.fontFamilySansSerif};
font-size: 24px;
text-align: center;
font-weight: 600;
}
`}</style>
</div>
Expand Down
7 changes: 4 additions & 3 deletions packages/web/components/Modal/ModalHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ const ModalHeader: React.FC<Props> = ({ onClose, title, showTitle }) => {
<style jsx>{`
.modal-header {
position: relative;
padding: 14px 64px;
padding: ${showTitle ? '14px 64px' : '0'};
border-bottom: ${showTitle ? '1px solid #d4d8db' : 0};
}
@media (min-width: ${modalConstants.modalBreakpoint}) {
.modal-header {
padding: 22px 64px;
padding: ${showTitle ? '14px 64px' : '0'};
}
}
Expand All @@ -49,11 +49,12 @@ const ModalHeader: React.FC<Props> = ({ onClose, title, showTitle }) => {
}
h1 {
${theme.typography.fontFamilySansSerif};
margin: 0 auto;
opacity: ${showTitle ? 1 : 0};
font-size: 20px;
line-height: 28px;
font-weight: 500;
font-weight: 600;
text-align: center;
transition: opacity 150ms ease-in, border 150ms ease-in;
${truncate(247)};
Expand Down
2 changes: 1 addition & 1 deletion packages/web/components/UserList/UserList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const UserList: React.FC<UserListProps> = ({ users, colorScheme = 'light-mode' }
return (
<div className="list-container">
{users.map((user) => (
<Link href={`/user/${user.handle}`}>
<Link href={`/user/${user.handle}`} key={user.id}>
<a className="user-container">
<UserAvatar user={user} size={50} />
<div className="name-handle-container">
Expand Down

1 comment on commit 239128e

@vercel
Copy link

@vercel vercel bot commented on 239128e May 11, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.