This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 38d3f473af4 [refactor](next) keep blog scroll position on
filter/pagination clicks (#3671)
38d3f473af4 is described below
commit 38d3f473af4798e57faf81f7479e4619dfcda991
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Mon May 18 12:52:30 2026 -0700
[refactor](next) keep blog scroll position on filter/pagination clicks
(#3671)
Co-authored-by: Claude Opus 4.7 <[email protected]>
---
src/theme/BlogListPage/index.tsx | 2 +-
src/theme/Layout/index.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/theme/BlogListPage/index.tsx b/src/theme/BlogListPage/index.tsx
index 987ebcac5dd..9eea6ffe7b8 100644
--- a/src/theme/BlogListPage/index.tsx
+++ b/src/theme/BlogListPage/index.tsx
@@ -156,7 +156,7 @@ function BlogListPageContent(props) {
<BlogLayout sidebar={sidebar} pageType="blogList"
className="lg:max-w-7xl">
<PageHeader title="Blog" className="bg-white" {...props} />
<HeadBlogs blogs={ALL_BLOG} />
- <div className="flex flex-col lg:max-w-7xl">
+ <div id="blog" className="flex flex-col lg:max-w-7xl scroll-mt-24">
<ul className="scrollbar-none w-[100%] mt-6 custom-scrollbar
m-auto flex gap-3 overflow-auto text-[#4C576C] lg:mt-[5.5rem]
lg:justify-center lg:gap-6">
{blogCategories.map((item: any, index) => (
<li className=" py-px" key={index} onClick={() =>
changeCategory(item.label)}>
diff --git a/src/theme/Layout/index.tsx b/src/theme/Layout/index.tsx
index 84728754357..566a5f280e4 100644
--- a/src/theme/Layout/index.tsx
+++ b/src/theme/Layout/index.tsx
@@ -37,7 +37,7 @@ export default function Layout(props: Props): JSX.Element {
useEffect(() => {
window.scroll(0, 0);
document.body.style.overflow = 'auto';
- }, [history.location]);
+ }, [history.location.pathname]);
useEffect(() => {
if (hash) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]