Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MH4GF committed Dec 22, 2024
1 parent 65bfe77 commit ce68dbd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
7 changes: 2 additions & 5 deletions app/_features/articles/ArticleList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { UniversalLink } from "../viewTransition";
import { ArticleListItem } from "./ArticleListItem";
import { getArticlesMeta } from "./getArticlesMeta";
import type { TagEnum } from "./type";
Expand All @@ -14,11 +13,9 @@ export const ArticleList = ({ tag }: Props): JSX.Element => {

return (
<div className="blur-enter-content">
<UniversalLink href="/" isEnabledUnderline className="text-zinc-700 dark:text-zinc-300">
← Go back
</UniversalLink>
<h1 className="text-xl">All Writing</h1>

<div className="mt-12 grid gap-6 blur-enter-content enter-step-150">
<div className="mt-12 grid gap-6 blur-enter-content enter-step-80">
{articlesMeta.map((article) => (
<ArticleListItem key={article.title} {...article} />
))}
Expand Down
4 changes: 2 additions & 2 deletions app/articles/[slug]/__tests__/page.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test.describe("Command Palette", () => {
await page.getByRole("option", { name: "All Writing" }).click();

await expect(page.getByRole("dialog")).not.toBeVisible();
await expect(page.getByRole("heading", { name: "Articles RSS" })).toBeVisible();
await expect(page.getByRole("heading", { name: "All Writing" })).toBeVisible();
});

test("Navigate to `Source of this site` on another tab", async ({ page }) => {
Expand All @@ -63,7 +63,7 @@ test.describe("Command Palette", () => {
await page.keyboard.press("Enter");

await expect(page.getByRole("dialog")).not.toBeVisible();
await expect(page.getByRole("heading", { name: "Articles RSS" })).toBeVisible();
await expect(page.getByRole("heading", { name: "All Writing" })).toBeVisible();
});

test("Navigate to `Source of this site` with Enter key", async ({ page }) => {
Expand Down
4 changes: 2 additions & 2 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@
animation-delay: calc(var(--enter-initial) + var(--enter-stage) * var(--enter-step));
}

.blur-enter-content.enter-step-150 > * {
--enter-step: 150ms;
.blur-enter-content.enter-step-80 > * {
--enter-step: 80ms;
}

.blur-enter-content > *:nth-child(1) {
Expand Down

0 comments on commit ce68dbd

Please sign in to comment.