Skip to content

Commit b6484c4

Browse files
author
dashuai
authored
Merge pull request #501 from answerdev/feat/1.1.3/ui
Feat/1.1.3/UI
2 parents 9bb1b78 + 2d72c63 commit b6484c4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

ui/src/pages/Admin/Seo/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { getSeoSetting, putSeoSetting } from '@/services';
66
import { SchemaForm, JSONSchema, initFormData, UISchema } from '@/components';
77
import { useToast } from '@/hooks';
88
import { handleFormError } from '@/utils';
9+
import { seoSettingStore } from '@/stores';
910

1011
const Index: FC = () => {
1112
const { t } = useTranslation('translation', {
@@ -64,6 +65,7 @@ const Index: FC = () => {
6465
msg: t('update', { keyPrefix: 'toast' }),
6566
variant: 'success',
6667
});
68+
seoSettingStore.getState().update(reqParams);
6769
})
6870
.catch((err) => {
6971
if (err.isError) {

ui/src/pages/Questions/Ask/components/SearchQuestion/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const SearchQuestion = ({ similarQuestions }) => {
2727
<ListGroup.Item
2828
action
2929
as="a"
30-
className="link-dark"
30+
className="d-flex align-items-center link-dark"
3131
key={item.id}
3232
href={pathFactory.questionLanding(item.id, item.url_title)}
3333
target="_blank">
@@ -38,7 +38,7 @@ const SearchQuestion = ({ similarQuestions }) => {
3838
: null}
3939
</span>
4040
{item.accepted_answer ? (
41-
<span className="ms-3 text-success">
41+
<span className="small ms-3 text-success">
4242
<Icon type="bi" name="check-circle-fill" />
4343
<span className="ms-1">
4444
{t('x_answers', {
@@ -49,7 +49,7 @@ const SearchQuestion = ({ similarQuestions }) => {
4949
</span>
5050
) : (
5151
item.answer_count > 0 && (
52-
<span className="ms-3 text-secondary">
52+
<span className="small ms-3 text-secondary">
5353
<Icon type="bi" name="chat-square-text-fill" />
5454
<span className="ms-1">
5555
{t('x_answers', {

0 commit comments

Comments
 (0)