Skip to content

Commit

Permalink
Fade memories list and prevent scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
evwilliams committed Jan 21, 2024
1 parent 8e6bd87 commit 3020dea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<title>Meditations</title>
</head>

<body>
<body class="bg-white dark:bg-neutral-800">
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ function App() {
}

return (
<div className="App flex h-dvh w-full flex-col items-center bg-neutral-50 align-top font-serif text-neutral-800 dark:bg-neutral-800 dark:text-neutral-200">
<div className="Content flex h-full w-full grow px-8 pb-2 pt-8 lg:px-96">
<div className="App flex h-dvh w-full flex-col items-center align-top font-serif text-neutral-800 dark:text-neutral-200">
<div className="Content flex h-full w-full grow overflow-hidden px-8 pb-2 pt-8 lg:px-96">
{tabs[activeTab]}
</div>

Expand All @@ -96,7 +96,7 @@ function App() {
/>
)}
<PlusIcon
className="h-12 w-12 text-neutral-800 dark:text-neutral-200"
className="h-12 w-12"
onClick={plusPressed}
/>
{hasMultipleNotes() && (
Expand Down
3 changes: 2 additions & 1 deletion src/components/ThoughtList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const ThoughtList = ({
...rest
}: ThoughtListProps) => {
return (
<div {...rest}>
<div {...rest} className={`${rest.className} relative`}>
<div className="pointer-events-none absolute -inset-4 z-10 bg-gradient-to-t from-white from-5% dark:from-neutral-800" />
<header className="text-2xl italic">Meditations</header>
<ul className="space-y-2 py-4 text-sm md:text-lg">
{thoughts?.map((thought) => (
Expand Down

0 comments on commit 3020dea

Please sign in to comment.