feat: 公告支持在小屏上展示

This commit is contained in:
hzm
2026-03-04 11:05:36 +08:00
parent c65f2b8ab1
commit 31553bb1a4

View File

@@ -52,6 +52,8 @@ export default function Announcement() {
display: 'flex',
flexDirection: 'column',
gap: '16px',
maxHeight: 'calc(100dvh - 40px)',
overflow: 'hidden',
}}
>
<div className="title" style={{ display: 'flex', alignItems: 'center', gap: '12px', fontWeight: 700, fontSize: '18px', color: 'var(--accent)' }}>
@@ -62,7 +64,7 @@ export default function Announcement() {
</svg>
<span>公告</span>
</div>
<div style={{ color: 'var(--text)', lineHeight: '1.6', fontSize: '15px' }}>
<div style={{ color: 'var(--text)', lineHeight: '1.6', fontSize: '15px', overflowY: 'auto', minHeight: 0, flex: 1, paddingRight: '4px' }}>
为了增加更多用户方便访问, 新增国内加速地址<a className="link-button"
target="_blank"
rel="noopener noreferrer"