Skip to content

Commit

Permalink
Make padding consistent between <Header> & <Main>
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeinhardt committed May 15, 2022
1 parent bf79bd9 commit bda21ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ export type Props = React.PropsWithChildren<never>;

function Header({ children }: Props) {
return (
<header className="bg-flamingo-in-sunset text-shadow-flamingo/20 sticky top-0 border-b border-flamingo/10 p-2 text-stone-100">
<div className="flex items-center justify-between gap-2 px-2">
{children}
</div>
<header className="bg-flamingo-in-sunset text-shadow-flamingo/20 sticky top-0 border-b border-flamingo/10 px-4 py-2 text-stone-100">
<div className="flex items-center justify-between gap-2">{children}</div>
</header>
);
}
Expand Down
6 changes: 5 additions & 1 deletion src/components/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ function List({ keys }: Props) {
<form>
<ol>
{slice.map((key, index) => (
<li key={key} ref={index === cursor ? itemRef : undefined}>
<li
key={key}
className="-mx-2"
ref={index === cursor ? itemRef : undefined}
>
<div
className={clsx(
"flex items-stretch border-b border-stone-200",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react";
export type Props = React.PropsWithChildren<never>;

function Main({ children }: Props) {
return <main className="mb-2 p-2">{children}</main>;
return <main className="mb-2 px-4 py-2">{children}</main>;
}

export default Main;

0 comments on commit bda21ec

Please sign in to comment.