mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 04:15:19 +00:00
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:
parent
dc43d06901
commit
eb0a2c3906
@ -429,15 +429,33 @@ export const InternalAdminLayout = () => {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
`}
|
`}
|
||||||
>
|
>
|
||||||
<img
|
{result?.data?.data?.logo?.url ? (
|
||||||
className={css`
|
<img
|
||||||
padding: 0 16px;
|
className={css`
|
||||||
object-fit: contain;
|
padding: 0 16px;
|
||||||
width: 100%;
|
object-fit: contain;
|
||||||
height: 100%;
|
width: 100%;
|
||||||
`}
|
height: 100%;
|
||||||
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`
|
||||||
|
Loading…
Reference in New Issue
Block a user