Skip to content

Commit

Permalink
Responsive in Profile modal component
Browse files Browse the repository at this point in the history
  • Loading branch information
anagperal committed Jun 20, 2024
1 parent 1a21585 commit 3bb0eb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/webapp/components/profile-modal/ProfileModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export const ProfileModal: React.FC<ProfileModalProps> = React.memo(

const Content = styled.div`
display: flex;
@media (max-width: 600px) {
flex-direction: column;
}
`;

const Name = styled.span`
Expand All @@ -59,6 +62,9 @@ const Footer = styled.div`

const StyledCard = styled(Card)`
width: 500px;
@media (max-width: 600px) {
width: 300px;
}
display: flex;
flex-direction: column;
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion src/webapp/pages/app/App.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
html {
background-color: #f3f3f3;
background-color: #f8f9fa;
font-family: Roboto, Arial, sans-serif;
overflow-y: scroll;
}
Expand Down

0 comments on commit 3bb0eb6

Please sign in to comment.