style: apply prettier formatting to fix format:check

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
TerryM
2026-05-29 12:49:22 +08:00
parent bcd7395e77
commit f73131dc03
6 changed files with 274 additions and 276 deletions

View File

@@ -30,9 +30,7 @@ export function BackToTop() {
animate={{ opacity: 1, scale: 1, y: 0 }}
exit={{ opacity: 0, scale: 0.8, y: 8 }}
transition={{ type: "spring", stiffness: 380, damping: 26 }}
onClick={() =>
window.scrollTo({ top: 0, behavior: "smooth" })
}
onClick={() => window.scrollTo({ top: 0, behavior: "smooth" })}
className="fixed bottom-[94px] right-4 z-30 flex h-11 w-11 items-center justify-center rounded-full bg-ark-gold text-black shadow-lg shadow-black/40 outline-none transition hover:bg-ark-gold2 active:scale-95 focus-visible:ring-2 focus-visible:ring-ark-gold/80 focus-visible:ring-offset-2 focus-visible:ring-offset-ark-bg md:bottom-8 md:right-8"
aria-label={t("backToTop")}
title={t("backToTop")}

View File

@@ -71,8 +71,9 @@ export function MessageStream({ scope }: MessageStreamProps) {
// When arriving with a `#post-<id>` hash (e.g. from a recommended card),
// scroll to that bubble — loading more pages until it shows up — then give
// it a brief highlight so the user can see where they landed.
const targetPostId =
hash.startsWith("#post-") ? hash.slice("#post-".length) : "";
const targetPostId = hash.startsWith("#post-")
? hash.slice("#post-".length)
: "";
const handledTargetRef = useRef<string>("");
useEffect(() => {