From ade7df223453ea229081e40c78b2d4602077ebe2 Mon Sep 17 00:00:00 2001 From: thislight Date: Fri, 22 Nov 2024 14:53:23 +0800 Subject: [PATCH] MediaAttachmentGrid: moved into toots --- src/timelines/RegularToot.tsx | 2 +- src/timelines/{ => toots}/MediaAttachmentGrid.css | 0 src/timelines/{ => toots}/MediaAttachmentGrid.tsx | 8 ++++---- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/timelines/{ => toots}/MediaAttachmentGrid.css (100%) rename src/timelines/{ => toots}/MediaAttachmentGrid.tsx (97%) diff --git a/src/timelines/RegularToot.tsx b/src/timelines/RegularToot.tsx index 07541ad..5cabe04 100644 --- a/src/timelines/RegularToot.tsx +++ b/src/timelines/RegularToot.tsx @@ -29,7 +29,7 @@ import { resolveCustomEmoji } from "../masto/toot.js"; import { Divider } from "@suid/material"; import cardStyle from "../material/cards.module.css"; import Button from "../material/Button.js"; -import MediaAttachmentGrid from "./MediaAttachmentGrid.js"; +import MediaAttachmentGrid from "./toots/MediaAttachmentGrid.jsx"; import { useDateFnLocale } from "../platform/i18n"; import { canShare, share } from "../platform/share"; import { makeAcctText, useDefaultSession } from "../masto/clients"; diff --git a/src/timelines/MediaAttachmentGrid.css b/src/timelines/toots/MediaAttachmentGrid.css similarity index 100% rename from src/timelines/MediaAttachmentGrid.css rename to src/timelines/toots/MediaAttachmentGrid.css diff --git a/src/timelines/MediaAttachmentGrid.tsx b/src/timelines/toots/MediaAttachmentGrid.tsx similarity index 97% rename from src/timelines/MediaAttachmentGrid.tsx rename to src/timelines/toots/MediaAttachmentGrid.tsx index 65097b8..6977ba1 100644 --- a/src/timelines/MediaAttachmentGrid.tsx +++ b/src/timelines/toots/MediaAttachmentGrid.tsx @@ -10,17 +10,17 @@ import { onCleanup, untrack, } from "solid-js"; -import MediaViewer from "./MediaViewer"; +import MediaViewer from "../MediaViewer"; import { render } from "solid-js/web"; import { createElementSize, useWindowSize, } from "@solid-primitives/resize-observer"; import { useStore } from "@nanostores/solid"; -import { $settings } from "../settings/stores"; -import { averageColorHex } from "../platform/blurhash"; +import { $settings } from "../../settings/stores"; +import { averageColorHex } from "../../platform/blurhash"; import "./MediaAttachmentGrid.css"; -import cardStyle from "../material/cards.module.css"; +import cardStyle from "../../material/cards.module.css"; import { Preview } from "@suid/icons-material"; import { IconButton } from "@suid/material";