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

Move source icon in incident detail to the header #181

Merged
merged 4 commits into from
May 24, 2024

Conversation

raviks789
Copy link
Contributor

fixes #161

@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Apr 22, 2024
@raviks789 raviks789 self-assigned this Apr 23, 2024
@raviks789 raviks789 force-pushed the incident-move-source-icon branch 3 times, most recently from 62c7f1e to 0777a12 Compare April 24, 2024 08:10
@raviks789 raviks789 changed the title WIP Move source icon in incident detail to the header Apr 24, 2024
@raviks789 raviks789 marked this pull request as ready for review April 24, 2024 08:11
Copy link
Contributor

@sukhwinder33445 sukhwinder33445 left a comment

Choose a reason for hiding this comment

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

  • The icon is no longer aligned in the center due to this change (bae69e5)
  • The icons in the list should be statically aligned.
Screenshot 2024-04-24 at 11 48 58

@ncosta-ic
Copy link
Member

ncosta-ic commented Apr 26, 2024

@raviks789 @sukhwinder33445

  • The icon is no longer aligned in the center due to this change (bae69e5)

  • The icons in the list should be statically aligned.

I stumbled accross the same problem and fixed it by adding a margin-top: .15em to the i.icon rule for .source-icon in public/css/common.less
I will not include this change in my PR (#166) but it should be an easy fix.

@sukhwinder33445
Copy link
Contributor

I stumbled accross the same problem and fixed it by adding a margin-top: .15em to the i.icon rule for .source-icon in public/css/common.less

It should also be fixed if you only remove this change. (bae69e5)

@ncosta-ic
Copy link
Member

ncosta-ic commented Apr 26, 2024

I stumbled accross the same problem and fixed it by adding a margin-top: .15em to the i.icon rule for .source-icon in public/css/common.less

It should also be fixed if you only remove this change. (bae69e5)

source_icon_alignment
(The red box should be aligned to the cyan guides)

I quickly compared all three variants:

  • vertical-align: top
  • vertical-align: top, margin-top: .15em
  • without both css rules

From my point of view, the second option is also not quite right, but it's much closer to be perfectly aligned than the other two variants.

EDIT: The change in the icon placement is caused by Icinga/ipl-web#221

Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

The placement of the icon should be fixed separately.

@raviks789 raviks789 force-pushed the incident-move-source-icon branch from 0777a12 to abe1089 Compare May 3, 2024 09:09
@raviks789 raviks789 requested a review from nilmerg May 3, 2024 09:15
@raviks789 raviks789 force-pushed the incident-move-source-icon branch from abe1089 to 3567726 Compare May 3, 2024 09:20
@nilmerg nilmerg added this to the Beta milestone May 3, 2024
Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

The placement of the icon should be fixed separately.

With this, I meant the placement of the icon inside the circle. Essentially, my answer to the discussion above.

Now, you've dismissed your own change that added a small gap to the right. I didn't mean you to do this! I still think it's suitable and a visual improvement. If applied to the incident and events list.

library/Notifications/Widget/ItemList/IncidentListItem.php Outdated Show resolved Hide resolved
@raviks789 raviks789 force-pushed the incident-move-source-icon branch 2 times, most recently from 3d93720 to 4d67288 Compare May 6, 2024 09:55
@raviks789 raviks789 requested a review from nilmerg May 6, 2024 09:57
Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

please rebase and fix conflicts

@raviks789 raviks789 force-pushed the incident-move-source-icon branch from 4d67288 to e3fad97 Compare May 8, 2024 10:01
@raviks789 raviks789 requested a review from nilmerg May 8, 2024 10:04
@nilmerg nilmerg added enhancement New feature or improvement area/ui Affects the user interface labels May 24, 2024
@nilmerg nilmerg merged commit 7203b07 into main May 24, 2024
22 checks passed
@nilmerg nilmerg deleted the incident-move-source-icon branch May 24, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui Affects the user interface cla/signed CLA is signed by all contributors of a PR enhancement New feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move source icon in incident detail to the header
4 participants