Skip to content

Commit

Permalink
fix: horizontal overflow on small devices
Browse files Browse the repository at this point in the history
  • Loading branch information
yacineahmaich committed Sep 18, 2023
1 parent 66d83a3 commit feec9bd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 0 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
<title>Pocket Wide | Take Control of Your Expenses with Pocket Wide</title>
</head>
<style>
body {
overflow: hidden;
}
.loader {
position: fixed;
top: 0;
Expand Down
8 changes: 8 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
html,
body {
overflow-x: hidden;
width: 100%;
}
}
2 changes: 1 addition & 1 deletion src/ui/header/MobileNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function MobileNavigation() {
<Dialog.Portal className="sm:hidden">
<Dialog.Overlay className="fixed inset-0 z-[9999] bg-black/20 animate-in duration-300 data-[state=open]:fade-in-0 sm:hidden" />
<Dialog.Content className="fixed inset-y-0 right-0 top-0 z-[9999] flex w-[280px] max-w-full flex-col bg-white animate-in data-[state=open]:slide-in-from-right sm:hidden">
<Dialog.Close className="absolute right-full top-2 mr-2">
<Dialog.Close className="absolute right-full top-2 mr-2" asChild>
<button className="rounded-full bg-white shadow-lg active:scale-95">
<Icon icon={HiXMark} color="gray" />
</button>
Expand Down

0 comments on commit feec9bd

Please sign in to comment.