Skip to content

Commit

Permalink
Merge pull request #553 from bond95/align-disk-delete
Browse files Browse the repository at this point in the history
Fixed align of Delete buttons for Disks
  • Loading branch information
mareklibra authored Apr 12, 2018
2 parents 503ac5e + d0038c3 commit 8fac225
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/VmDisks/VmDisk.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,17 @@ class VmDisk extends React.PureComponent {

return (
<li>
<span id={`${idPrefix}`}>
<span className={style['vmdisk-item-info']} id={`${idPrefix}`}>
{name}
&nbsp;
{capacityInfo}
{bootable}
{inactive}
&nbsp;
</span>
<span className={style['vmdisk-item-delete']}>
{deleteButton}
{deletionConfirmationDialog}
</span>
{deletionConfirmationDialog}
</li>
)
}
Expand Down
21 changes: 21 additions & 0 deletions src/components/VmDisks/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
list-style-type: none;
padding: 0;
margin-bottom: 0px !important;
display: table;
}

.smaller {
font-size: 50%;
vertical-align: middle;
margin-left: 0.5em;
display: inline-block;
}

.light {
Expand All @@ -27,3 +29,22 @@
font-size: small;
cursor: pointer;
}

.disks-list li {
display: table-row;
}

.disks-list li > span {
display: table-cell;
}

.vmdisk-item-info > *:last-child {
margin-right: 5px;
}

.vmdisk-item-delete {
vertical-align: middle;
}
.vmdisk-item-delete button {
display: block;
}

0 comments on commit 8fac225

Please sign in to comment.