diff --git a/src/assets/icons/IconArrowNarrowUp.svg b/src/assets/icons/IconArrowNarrowUp.svg new file mode 100644 index 0000000000..ac166a36c5 --- /dev/null +++ b/src/assets/icons/IconArrowNarrowUp.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/BackToTopButton.astro b/src/components/BackToTopButton.astro index 98650959b4..c2f7617df8 100644 --- a/src/components/BackToTopButton.astro +++ b/src/components/BackToTopButton.astro @@ -1,41 +1,33 @@ --- import IconChevronLeft from "@/assets/icons/IconChevronLeft.svg"; - -/* -In #btt-btn-container, left position is `left-[calc((var(--container-3xl)/2)+50%+1rem)]`. -This is because we use `max-w-3xl` in `PostDetails.astro`. -If `max-width` in `PostDetails.astro` get updated, make sure to update the `var(--container-3xl)` as well. -max-w-3xl => var(--container-3xl) -max-w-4xl => var(--container-4xl) -max-w-5xl => var(--container-5xl) -etc... -*/ +import IconArrowNarrowUp from "@/assets/icons/IconArrowNarrowUp.svg"; ---