修复显示问题

This commit is contained in:
al 2025-01-10 21:56:50 +08:00
parent d897b4b1aa
commit adc60b029e
2 changed files with 4 additions and 4 deletions
app/noticeDetail/components/MessageList
components/BottomNav

View File

@ -198,7 +198,7 @@ const MessageList = ({ mid, changeNoticeCount, refInstance, noticeCount }) => {
<div className="relative rounded-full">
<Badge
status="error"
content={count > 99 ? "+99" : count}
content={count > 99 ? "99+" : count}
className="text-lg"
/>
</div>
@ -259,7 +259,7 @@ const MessageList = ({ mid, changeNoticeCount, refInstance, noticeCount }) => {
<Badge
status="error"
content={
data.contact_cs_urc > 99 ? "+99" : data.contact_cs_urc
data.contact_cs_urc > 99 ? "99+" : data.contact_cs_urc
}
className="text-lg"
/>

View File

@ -72,7 +72,7 @@ function BottomNav({ changeNoticeCount, changeInviter, noticeCount }) {
<OwnIcon lazy className="w-8 h-8" src="/icons/streamblur.png" />
{!!noticeCount && (
<Badge
content={noticeCount > 99 ? "+99" : noticeCount}
content={noticeCount > 99 ? "99+" : noticeCount}
className="absolute top-0 right-0 z-10"
/>
)}
@ -83,7 +83,7 @@ function BottomNav({ changeNoticeCount, changeInviter, noticeCount }) {
<OwnIcon lazy className="w-8 h-8" src="/icons/streamfocus.png" />
{!!noticeCount && (
<Badge
content={noticeCount > 99 ? "+99" : noticeCount}
content={noticeCount > 99 ? "99+" : noticeCount}
className="absolute top-0 right-0 z-10"
/>
)}