Skip to content

Commit c85b5eb

Browse files
committed
chore(platform): optimize platform
1 parent 9ce5862 commit c85b5eb

2 files changed

Lines changed: 18 additions & 16 deletions

File tree

packages/platform/src/app/routes/list/standard-table/detail/Detail.tsx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,23 @@ export default AppRoute(() => {
5555
/>
5656
<AppRouteHeader.Header
5757
aBack
58-
aActions={[
59-
<DButton
60-
disabled={isUndefined(device)}
61-
onClick={() => {
62-
DialogService.open(AppDeviceModal, {
63-
aDevice: device,
64-
onSuccess: () => {
65-
setUpdateDevice((n) => n + 1);
66-
},
67-
});
68-
}}
69-
dIcon={<EditOutlined />}
70-
>
71-
Edit
72-
</DButton>,
73-
]}
58+
aActions={
59+
device && [
60+
<DButton
61+
onClick={() => {
62+
DialogService.open(AppDeviceModal, {
63+
aDevice: device,
64+
onSuccess: () => {
65+
setUpdateDevice((n) => n + 1);
66+
},
67+
});
68+
}}
69+
dIcon={<EditOutlined />}
70+
>
71+
Edit
72+
</DButton>,
73+
]
74+
}
7475
/>
7576
</AppRouteHeader>
7677
<div className={styles['app-detail']}>

packages/platform/src/styles/components/route-header.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
flex-wrap: wrap;
2828
align-items: center;
2929
justify-content: space-between;
30+
min-height: 52px;
3031
padding-bottom: 16px;
3132
}
3233

0 commit comments

Comments
 (0)