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 placement alignment. #6238

Merged
merged 1 commit into from
Sep 26, 2019
Merged

Conversation

Hchrast
Copy link
Contributor

@Hchrast Hchrast commented Sep 26, 2019

https://bugzilla.redhat.com/show_bug.cgi?id=1740647

Steps to Reproduce:

  1. Navigate to 'Networks -> Security Groups -> Add New Security Group'
  2. Check the main entities Network Management Provider, Security Group Information and Placement
  3. 'Placement' entity is not aligned

Before:
placementbefore

After:
placementafter

@Hchrast
Copy link
Contributor Author

Hchrast commented Sep 26, 2019

@miq-bot add_label bug

@Hchrast
Copy link
Contributor Author

Hchrast commented Sep 26, 2019

@romanblanco please make a review, thanks

@miq-bot miq-bot added the bug label Sep 26, 2019
Copy link
Member

@romanblanco romanblanco left a comment

Choose a reason for hiding this comment

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

The changes are fixing the issue 👍

%span.help-block{"ng-show" => "angularForm.cloud_tenant_id.$error.required"}
= _("Required")

.placement{"ng-if" => "vm.securityGroupModel.ems_id"}
Copy link
Member

Choose a reason for hiding this comment

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

I feel like we don't need to introduce a new class for the div, and just use a regular %div, since we don't have a special style for the placement class:

Suggested change
.placement{"ng-if" => "vm.securityGroupModel.ems_id"}
%div{"ng-if" => "vm.securityGroupModel.ems_id"}

cc @ZitaNemeckova

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@miq-bot
Copy link
Member

miq-bot commented Sep 26, 2019

Checked commit Hchrast@813f644 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🏆

@h-kataria h-kataria self-assigned this Sep 26, 2019
@h-kataria h-kataria added this to the Sprint 121 Ending Sep 30, 2019 milestone Sep 26, 2019
@h-kataria h-kataria merged commit 17ca491 into ManageIQ:master Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants