Skip to content

Commit

Permalink
fix: align the disk/node conditions in a vertical way within edit dis…
Browse files Browse the repository at this point in the history
…k modal

Signed-off-by: andy.lee <andy.lee@suse.com>
  • Loading branch information
a110605 authored and derekbit committed Oct 15, 2024
1 parent b982e53 commit 05d8d91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/routes/host/components/EditableDiskItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function EditableDiskItem({ isNew, disk, form, onRestore, onRemove, validatePath
<div className={styles.label}>
Conditions
</div>
<div className={styles.control} style={{ width: '690px', lineHeight: '40px', display: 'flex', padding: '0 15px' }}>
<div className={styles.control} style={{ lineHeight: '40px' }}>
{disk && disk.conditions && Object.keys(disk.conditions).map((key) => {
let title = (<div>
{disk.conditions[key] && disk.conditions[key].lastProbeTime && disk.conditions[key].lastProbeTime ? <div style={{ marginBottom: 5 }}>Last Probe Time: {formatDate(disk.conditions[key].lastProbeTime)}</div> : ''}
Expand Down
3 changes: 1 addition & 2 deletions src/routes/host/components/EditableDiskItem.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
width: 100%;
}
.control {
padding: 5px 7px;
padding: 5px 14px;
width: 100%;
}

}
}
2 changes: 1 addition & 1 deletion src/routes/host/components/EditableDiskList.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class EditableDiskList extends React.Component {
<div className={styles.label}>
Conditions
</div>
<div className={styles.control} style={{ width: '690px', lineHeight: '40px', display: 'flex' }}>
<div className={styles.control} style={{ lineHeight: '40px' }}>
{node && node.conditions && Object.keys(node.conditions).map((key) => {
let title = (<div>
{node.conditions[key] && node.conditions[key].lastProbeTime && node.conditions[key].lastProbeTime ? <div style={{ marginBottom: 5 }}>Last Probe Time: {formatDate(node.conditions[key].lastProbeTime)}</div> : ''}
Expand Down

0 comments on commit 05d8d91

Please sign in to comment.