This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/answer-plugins.git


The following commit(s) were added to refs/heads/main by this push:
     new da57274  fix: quick-links add divider
da57274 is described below

commit da5727456cef80f42c1a32f3217708e621d61993
Author: shuai <[email protected]>
AuthorDate: Fri Nov 21 17:57:46 2025 +0800

    fix: quick-links add divider
---
 quick-links/Component.tsx | 3 ++-
 quick-links/info.yaml     | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/quick-links/Component.tsx b/quick-links/Component.tsx
index d98079e..f14dd19 100644
--- a/quick-links/Component.tsx
+++ b/quick-links/Component.tsx
@@ -20,7 +20,7 @@
 import { useTranslation } from 'react-i18next';
 import useSWR from 'swr'
 
-const Component = ({ navigate, request }) => {
+const Component = ({ navigate, request, hasDivider }) => {
 
   const { t } = useTranslation('plugin', {
     keyPrefix: 'quick_links.frontend',
@@ -54,6 +54,7 @@ const Component = ({ navigate, request }) => {
 
   return (
     <div>
+      {hasDivider && <div className="border-top mt-3" />}
       <div className="py-2 px-3 mt-3 small fw-bold 
quick-link">{t('quick_links')}</div>
       {tags?.map((tag) => {
         const href = `/tags/${encodeURIComponent(tag.slug_name)}`
diff --git a/quick-links/info.yaml b/quick-links/info.yaml
index 6dd9c3b..362d6a7 100644
--- a/quick-links/info.yaml
+++ b/quick-links/info.yaml
@@ -17,6 +17,6 @@
 
 slug_name: quick_links
 type: sidebar
-version: 1.0.1
+version: 1.0.2
 author: answerdev
 link: https://github.com/apache/answer-plugins/tree/main/quick-links

Reply via email to