refactor(frontend): 优化抓包页面样式和布局
-调整接口地址显示方式- 重构按钮布局,采用垂直排列 - 统一按钮样式,设置最小宽度和字体大小- 更新导出数据按钮样式
This commit is contained in:
@@ -1 +1 @@
|
|||||||
ab1f461d7da532ffc0ddf7b22c308322
|
98e3c997ed559906a235af48ee6be17d
|
||||||
@@ -391,12 +391,13 @@ function CapturePage() {
|
|||||||
>
|
>
|
||||||
{interfaces.map((iface) => (
|
{interfaces.map((iface) => (
|
||||||
<Select.Option key={iface.name} value={iface.name}>
|
<Select.Option key={iface.name} value={iface.name}>
|
||||||
{iface.addresses.join(', ')}
|
{iface.addresses}
|
||||||
</Select.Option>
|
</Select.Option>
|
||||||
))}
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
|
||||||
<div style={{ display: 'flex', gap: 8 }}>
|
<div style={{ display: 'flex', gap: 8 }}>
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="primary"
|
||||||
@@ -404,29 +405,26 @@ function CapturePage() {
|
|||||||
onClick={startCapture}
|
onClick={startCapture}
|
||||||
disabled={isCapturing || !selectedInterface}
|
disabled={isCapturing || !selectedInterface}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
style={{ flex: 1, height: 32 }}
|
style={{ flex: 1, height: 32, minWidth: 0, fontSize: 12 }}
|
||||||
>
|
>
|
||||||
开始抓包
|
开始抓包
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
danger
|
danger
|
||||||
icon={<StopOutlined />}
|
icon={<StopOutlined />}
|
||||||
onClick={stopCapture}
|
onClick={stopCapture}
|
||||||
disabled={!isCapturing}
|
disabled={!isCapturing}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
style={{ flex: 1, height: 32 }}
|
style={{ flex: 1, height: 32, minWidth: 0, fontSize: 12 }}
|
||||||
>
|
>
|
||||||
停止抓包
|
停止抓包
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style={{ marginTop: 12 }}>
|
|
||||||
<Button
|
<Button
|
||||||
icon={<DownloadOutlined />}
|
icon={<DownloadOutlined />}
|
||||||
onClick={exportData}
|
onClick={exportData}
|
||||||
disabled={!capturedData.length}
|
disabled={!capturedData.length}
|
||||||
style={{ width: '100%', height: 32 }}>
|
style={{ width: '100%', height: 32, fontSize: 14 }}>
|
||||||
导出数据
|
导出数据
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user