feat(client): display system title when logo is missing (#5175)

* fix(client): no logo show title

* fix(client): font size using token

* fix(client): update font size

* style: optimize style

---------

Co-authored-by: Zeke Zhang <958414905@qq.com>
This commit is contained in:
猫鱼豆腐 2024-09-05 09:51:25 +08:00 committed by GitHub
parent dc43d06901
commit eb0a2c3906
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -429,6 +429,7 @@ export const InternalAdminLayout = () => {
align-items: center; align-items: center;
`} `}
> >
{result?.data?.data?.logo?.url ? (
<img <img
className={css` className={css`
padding: 0 16px; padding: 0 16px;
@ -438,6 +439,23 @@ export const InternalAdminLayout = () => {
`} `}
src={result?.data?.data?.logo?.url} src={result?.data?.data?.logo?.url}
/> />
) : (
<span
style={{ fontSize: token.fontSizeHeading3 }}
className={css`
padding: 0 16px;
width: 100%;
height: 100%;
font-weight: 500;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
`}
>
{result?.data?.data?.title}
</span>
)}
</div> </div>
<div <div
className={css` className={css`