Skip to content

Commit

Permalink
fix: rework upload modal alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
thraizz committed Dec 17, 2023
1 parent d23d78d commit 9966541
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/UploadModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const UploadModal = () => {
aria-hidden="true"
/>
</Popover.Button>
<Popover.Overlay className="fixed inset-0 bg-sky-800 opacity-30" />
<Popover.Overlay className="md:hidden fixed inset-0 bg-sky-800 opacity-30" />
<Transition
as={Fragment}
enter="transition ease-out duration-200"
Expand All @@ -34,7 +34,7 @@ export const UploadModal = () => {
leaveFrom="opacity-100 translate-y-0"
leaveTo="opacity-0 translate-y-1"
>
<Popover.Panel className="fixed right-0 left-0 sm:right-1/2 z-30 mt-3 w-screen sm:max-w-sm sm:translate-x-[18%] transform px-4 sm:px-0 lg:max-w-3xl">
<Popover.Panel className="fixed sm:absolute right-0 left-0 sm:left-[unset] z-30 mt-3 w-screen sm:max-w-sm transform px-4 sm:px-0 lg:max-w-3xl">
<div className="mx-auto w-full max-w-xl p-4 bg-white rounded-md shadow-md flex flex-col gap-4 ">
<p className="text-md">
Upload your CSV file exported from the Garmin Golf App.
Expand Down
10 changes: 0 additions & 10 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,6 @@ input {
z-index: 40;
}

.max-w-xl {
left: 0;
}

#headlessui-popover-panel-\:r13\: {
left: 0;
right: 0;
width: 100%;
}

form.flex>div:nth-child(1) {
width: 100%;
}
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit 9966541

Please sign in to comment.