diff --git a/css/index.scss b/css/index.scss index 2459d2b..1ba373d 100644 --- a/css/index.scss +++ b/css/index.scss @@ -147,6 +147,7 @@ img { .favorite-story-button { margin-top: 0.5em; + margin-right: 0.5em; } .saved-container { @@ -180,4 +181,9 @@ img { padding: 0.2em; margin-bottom: 0.5em; } +} + +.detail-buttons { + display: flex; + flex-direction: row; } \ No newline at end of file diff --git a/routes/story.tsx b/routes/story.tsx index db25be4..c23a67c 100644 --- a/routes/story.tsx +++ b/routes/story.tsx @@ -5,7 +5,8 @@ import watt from "../wattpad.ts"; import FourOhFour from "./404.tsx"; import Script from "../components/Script.tsx"; -import FavoriteStoryButtonScript from "../scripts/FavoriteStory.ts"; +import StoryButtonScript from "../scripts/Story.ts"; +import StoryProgressSavingScript from "../scripts/StoryProgressSaving.ts"; export default async (params: URLSearchParams) => { if (!params.get("id")) return ; @@ -15,11 +16,9 @@ export default async (params: URLSearchParams) => { // chapters if (params.get("chapter")) { await story.chapters[Number(params.get("chapter") as string)].init(); - - console.log(story.chapters.length); - console.log(Number(params.get("chapter"))); return ( +