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

Commit

Permalink
fix: multiple bug fixes (#179)
Browse files Browse the repository at this point in the history
* fix(Buttons): external icon not separated from text

* feat(Navbar): change width to 100% for cleaner look

* fix(Button): only add space for items with text and icon

* fix: remove usage of deprecated functions
  • Loading branch information
ijsKoud authored Sep 4, 2022
1 parent 813aa0b commit fef55ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/general/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props {
}

const Modal: FC<Props> = ({ children, onClick, isOpen }) => {
return <AnimatePresence exitBeforeEnter>{isOpen && <ModalItem onClick={onClick}>{children}</ModalItem>}</AnimatePresence>;
return <AnimatePresence mode="wait">{isOpen && <ModalItem onClick={onClick}>{children}</ModalItem>}</AnimatePresence>;
};

export default Modal;
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Home: NextPage = () => {
</div>
<p>File uploading. URL Shortening. Protected views.</p>
<div className="home-buttons">
<Button external newWindow style="black" type="link" text="GitHub" url="https://ijskoud.dev/github/paperplane" />
<Button external newWindow style="black" type="link" text="GitHub " url="https://ijskoud.dev/github/paperplane" />
<Button style="black" type="link" text="Dashboard" url="/dashboard" />
</div>
</div>
Expand Down
5 changes: 2 additions & 3 deletions src/styles/components/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
.navbar-container-wrapper {
width: 100%;

top: 20px;
top: 0px;
left: 50%;
transform: translateX(-50%);

Expand All @@ -51,8 +51,7 @@
background-color: $navbar-background;
padding: 10px 20px;

border-radius: 10px;
width: 90%;
width: 100%;
height: 80px;

display: flex;
Expand Down

0 comments on commit fef55ad

Please sign in to comment.