Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed align of Delete buttons for Disks #553

Merged
merged 1 commit into from
Apr 12, 2018

Conversation

bond95
Copy link
Contributor

@bond95 bond95 commented Apr 6, 2018

Bug: When some disk is bootable, arrangment is broke.
Fixes: #544
image


This change is Reviewable

@bond95 bond95 requested review from jniederm and mareklibra April 6, 2018 13:44
Copy link
Contributor

@mareklibra mareklibra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a question regarding generic usability (i.e. for networks)

@@ -27,3 +28,14 @@
font-size: small;
cursor: pointer;
}

.vmdisk-item {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would make these more generic, not just for vmdisk.
Isn't there same issue for networks?
What about potential future list of other objects on the same place?

@jniederm

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provided we have time for this, it would surely be nice to have a component. I wouldn't go for anything complex like AddRemoveListing but rather use something purely visual like AlignedListing

@@ -8,6 +8,7 @@
list-style-type: none;
padding: 0;
margin-bottom: 0px !important;
display: table;
Copy link
Contributor

@jniederm jniederm Apr 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this difficult to read and debug. This actually relies on generation of virtual, DOM invisible, row and tr elements as described at Anonymous table objects css spec. I find it much more clear to openly admit that we are actually creating complete css table and use appropriate display values for li (table-row) and span (table-cell) elements.

@bond95 bond95 force-pushed the align-disk-delete branch from 760cc5e to dc06363 Compare April 9, 2018 12:26
@bond95
Copy link
Contributor Author

bond95 commented Apr 9, 2018

@jniederm Done.

@bond95 bond95 force-pushed the align-disk-delete branch from dc06363 to 6cb305a Compare April 9, 2018 12:29
@@ -93,16 +93,17 @@ class VmDisk extends React.PureComponent {

return (
<li>
<span id={`${idPrefix}`}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not remove id attributes, they are referenced from Selenium tests

Bug: When some disk is bootable, arrangment is broke.
Fixes: oVirt#544
@bond95 bond95 force-pushed the align-disk-delete branch from 6cb305a to d0038c3 Compare April 10, 2018 10:02
@bond95
Copy link
Contributor Author

bond95 commented Apr 10, 2018

@mareklibra Done.

@mareklibra mareklibra merged commit 8fac225 into oVirt:master Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants