XWIKI-22342: A change in @navbar-height ruins vertical align of items in navbar #3804
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jira URL
https://jira.xwiki.org/browse/XWIKI-22342
Changes
Description
Clarifications
NotificationsDisplayerUIX.xml
, nothing to report.Screenshots & Video
2025-01-16.14-38-02.mp4
In order to test multiple values quickly, instead of setting a defined height (like I'd advise for an actual use), I set the navbar height as a fraction of the screen (half). This way, redimensionning the screen allowed me to quickly change the value of the navbar height.
We can see that the navbar, with the changes proposed here the icons stay properly in the center. The only issue left is on very low width, the avatar seems to behave a bit weirdly.
Executed Tests
Manual tests, as seen above.
We can assume the changes in CSS don't break automated tests.
The test model for the updated notification count should not break because of the changes:
xwiki-platform/xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-test/xwiki-platform-notifications-test-pageobjects/src/main/java/org/xwiki/platform/notifications/test/po/NotificationsTrayPage.java
Lines 66 to 67 in 5f90563
In order to check this, I first built the change with
mvn clean install -f xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-ui; mvn clean install -f xwiki-platform-distribution
and then ran the mention testsmvn clean install -f xwiki-platform-core/xwiki-platform-mentions/xwiki-platform-mentions-test/xwiki-platform-mentions-test-docker -Pdocker
. These tests use the Notification count (they count mention notifications). The build and tests passed successfullyExpected merging strategy