紧凑样式

This commit is contained in:
mmc
2026-05-14 17:23:12 +08:00
parent 6cadb14a9c
commit 995c8c482b
16 changed files with 248 additions and 268 deletions

View File

@@ -69,13 +69,13 @@ export default function AlarmCenterPage() {
return (
<Layout style={{ minHeight: '100vh', overflow: 'hidden' }}>
<div style={{ display: 'flex', paddingBottom: "12px" }}>
<div style={{ padding: '20px 24px 0' }}>
<Typography.Title level={4} style={{ margin: 0 }}>告警中心</Typography.Title>
<Text type="secondary">告警处置闭环、规则管理与事件中心</Text>
<div style={{ display: 'flex', paddingBottom: "4px" }}>
<div style={{ padding: '8px 12px 0' }}>
<Typography.Title level={4} style={{ margin: 0, fontSize: 'clamp(14px, 1.2vw, 18px)' }}>告警中心</Typography.Title>
<Text type="secondary" style={{ fontSize: '12px' }}>告警处置闭环、规则管理与事件中心</Text>
</div>
<Header style={{ padding: 0, borderBottom: '1px solid #f0f0f0', position: 'sticky', top: 0, zIndex: 10 }}>
<Header style={{ padding: 0, borderBottom: '1px solid #f0f0f0', position: 'sticky', top: 0, zIndex: 10, height: 40, lineHeight: '40px' }}>
{/*<Menu
mode="horizontal"
selectedKeys={[activeTab]}
@@ -83,8 +83,8 @@ export default function AlarmCenterPage() {
items={showTabs}
style={{
border: 'none',
height: 64,
lineHeight: '64px',
height: 40,
lineHeight: '40px',
background: 'transparent !important',
backgroundColor: 'transparent !important',
}}
@@ -94,7 +94,7 @@ export default function AlarmCenterPage() {
<Content style={{
maxHeight: 'calc(100vh - 64px)', overflowY: 'auto', background: '#f5f7fa',
maxHeight: 'calc(100vh - 40px)', overflowY: 'auto', background: '#f5f7fa',
scrollbarWidth: 'none', msOverflowStyle: 'none',
}}>
{renderTabContent()}