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

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


The following commit(s) were added to refs/heads/test by this push:
     new 2a62dd21 fix: preview mode icon toggle
2a62dd21 is described below

commit 2a62dd214fd02a03ba5c62f4b6df03fc2d8f87b8
Author: shuai <[email protected]>
AuthorDate: Fri Feb 14 15:17:53 2025 +0800

    fix: preview mode icon toggle
---
 ui/src/components/QuestionList/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/components/QuestionList/index.tsx 
b/ui/src/components/QuestionList/index.tsx
index a3ffb948..7585c52a 100644
--- a/ui/src/components/QuestionList/index.tsx
+++ b/ui/src/components/QuestionList/index.tsx
@@ -112,7 +112,7 @@ const QuestionList: FC<Props> = ({
           />
           <Dropdown align="end" onSelect={handleViewMode}>
             <Dropdown.Toggle variant="outline-secondary" size="sm">
-              <Icon name="list" />
+              <Icon name={viewType === 'card' ? 'view-stacked' : 'list'} />
             </Dropdown.Toggle>
 
             <Dropdown.Menu>

Reply via email to