Skip to content

Commit

Permalink
feat: adjust margins on smaller displays
Browse files Browse the repository at this point in the history
  • Loading branch information
thraizz committed Aug 8, 2024
1 parent 67d6d1f commit 1d33195
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/base/BasePageLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const BasePageLayout = ({ children }: { children: React.ReactNode }) => (
<div className="mx-6 flex flex-grow flex-col items-center justify-center gap-8">
<div className="mx-4 flex flex-grow flex-col items-center justify-center gap-8 lg:mx-6">
<div className="flex w-full flex-col gap-4 rounded-md bg-gray-100 p-4 shadow-md">
{children}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/panels/SettingsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const SettingsForm = () => {
};

return (
<div className="mt-4 flex flex-row gap-4">
<div className="mt-4 flex flex-col gap-2 lg:flex-row lg:gap-4">
<label className="block">
<input
type="checkbox"
Expand Down
4 changes: 2 additions & 2 deletions src/views/NewLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ export const NewLayout = ({ children }: PropsWithChildren) => {
<UserMenu />
</div>

<main className="py-10">
<div className="px-4 sm:px-6 lg:px-8">{children}</div>
<main className="py-4 lg:py-10">
<div className="px-0 sm:px-4 lg:px-8">{children}</div>
</main>
</div>
</div>
Expand Down

0 comments on commit 1d33195

Please sign in to comment.