A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(Notifications): Optimize font size and other styles
haitaoo8e0a22188e6a
diff --git a/ui/src/pages/Questions/Detail/components/InviteToAnswer/PeopleDropdown.tsx b/ui/src/pages/Questions/Detail/components/InviteToAnswer/PeopleDropdown.tsxindex e108359d..2eb06ccf 100644--- a/ui/src/pages/Questions/Detail/components/InviteToAnswer/PeopleDropdown.tsx+++ b/ui/src/pages/Questions/Detail/components/InviteToAnswer/PeopleDropdown.tsx@@ -69,7 +69,7 @@ const Index: FC<Props> = ({ selectedPeople = [], onSelect }) => {</Dropdown.Toggle><Dropdown.Menu>- <Dropdown.Header className="px-2 pt-0">+ <Dropdown.Header className="px-2 py-0"><Form.ControlautoFocusplaceholder={t('search')}@@ -78,7 +78,10 @@ const Index: FC<Props> = ({ selectedPeople = [], onSelect }) => {</Dropdown.Header>{peopleList.map((p, idx) => {return (- <Dropdown.Item key={p.username} eventKey={idx}>+ <Dropdown.Item+ key={p.username}+ eventKey={idx}+ className={idx === 0 ? 'mt-2' : ''}><div className="d-flex align-items-center text-nowrap"><Avatar avatar={p.avatar} size="24" /><span className="mx-2">{p.display_name}</span>diff --git a/ui/src/pages/Users/Notifications/components/Achievements/index.tsx b/ui/src/pages/Users/Notifications/components/Achievements/index.tsxindex 0fdb119d..7303903a 100644--- a/ui/src/pages/Users/Notifications/components/Achievements/index.tsx+++ b/ui/src/pages/Users/Notifications/components/Achievements/index.tsx@@ -38,7 +38,7 @@ const Achievements = ({ data, handleReadNotification }) => {<ListGroup.Itemkey={item.id}className={classNames(- 'd-flex border-start-0 border-end-0',+ 'd-flex border-start-0 border-end-0 py-3',!item.is_read && 'warning',)}>{item.rank > 0 && (@@ -52,7 +52,7 @@ const Achievements = ({ data, handleReadNotification }) => {<Link to={url} onClick={() => handleReadNotification(item.id)}>{item.object_info.title}</Link>- <span className="text-secondary">+ <span className="text-secondary small">{item.object_info.object_type}</span></div>diff --git a/ui/src/pages/Users/Notifications/components/Inbox/index.tsx b/ui/src/pages/Users/Notifications/components/Inbox/index.tsxindex 71b69f06..527c4a72 100644--- a/ui/src/pages/Users/Notifications/components/Inbox/index.tsx+++ b/ui/src/pages/Users/Notifications/components/Inbox/index.tsx@@ -55,7 +55,7 @@ const Inbox = ({ data, handleReadNotification }) => {{item.object_info.title}</Link></div>- <div className="text-secondary">+ <div className="text-secondary small"><FormatTime time={item.update_time} /></div></ListGroup.Item>diff --git a/ui/src/pages/Users/Notifications/index.tsx b/ui/src/pages/Users/Notifications/index.tsxindex 91a78ec9..0e0c7246 100644--- a/ui/src/pages/Users/Notifications/index.tsx+++ b/ui/src/pages/Users/Notifications/index.tsx@@ -118,7 +118,7 @@ const Notifications = () => {</div>{type === 'inbox' && (<>- <Nav className="inbox-nav">+ <Nav className="inbox-nav small">{inboxTypeNavs.map((nav) => {const navLinkHref = `/users/notifications/inbox/${nav}`;const navLinkName = t(`inbox_type.${nav}`);