Skip to content

XWIKI-23413: Separators in navigation tree dropdown #4403

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

Merged
merged 3 commits into from
Aug 6, 2025

Conversation

Sereza7
Copy link
Contributor

@Sereza7 Sereza7 commented Jul 28, 2025

Jira URL

https://jira.xwiki.org/browse/XWIKI-23413

Changes

Description

* Provided the fix as a hard-coded exception to the updated bootstrap
The solution prooposed in this PR now is completely different to what was done initially

Screenshots & Video

With the changes in the PR applied:
Screenshot from 2025-07-28 17-05-47

Note that before applying that patch, I could reproduce the problem reported on this local instance. The state of this UI without the fix is available as an attachment to the equivalent jira ticket.

Executed Tests

Manual tests only. The issue was reported after manual tests and style changes only hardly ever impact automated tests.
Built the jar with the quality profile successfully:
mvn clean install -f xwiki-platform-core/xwiki-platform-tree/xwiki-platform-tree-webjar -Pquality

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • 17.4.X
    • 16.10.X

Sereza7 added 2 commits July 28, 2025 17:10
* Provided the fix as a hard-coded exception to the updated bootstrap
@@ -51,6 +51,16 @@
text-decoration: none;
}
}

// We override the separator styles from bootstrap dropdown.less
Copy link
Contributor

Choose a reason for hiding this comment

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

To me, it's absolutely not clear why bootstrap dropdowns should have separators by default. I think the separators should be specifically added where we want them and not generically in all bootstrap dropdowns. What's the reason for adding them by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in bc941a9 👍

* Removed changes relative to the former solution
* Reverted generic changes from XWIKI-22485 to make them more specific and added them in the Livedata CSS.
@Sereza7
Copy link
Contributor Author

Sereza7 commented Aug 1, 2025

Following #4403 (comment) , the solution implemented in the PR completely changed.
Here is what the livedata menu looks like with the changes here:
Screenshot from 2025-08-01 16-57-40

As for tests, I could build the livedata webjar successfully with mvn clean install -f xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar -Pquality and manually tested to get the result shown in the picture above.

@Sereza7 Sereza7 requested a review from michitux August 1, 2025 15:05
@michitux
Copy link
Contributor

michitux commented Aug 1, 2025

Here is what the livedata menu looks like with the changes here:
Screenshot from 2025-08-01 16-57-40

I assume this is the same as before? Is it normal that the button for the menu is cut off at the top?

@Sereza7
Copy link
Contributor Author

Sereza7 commented Aug 6, 2025

@michitux
This behaviour is the same as before. The button for the menu is cut off because I scrolled.
This scrolling was/is possible because the menu dropdown overflows vertically from its container.

With any livedata with not much into it, it happened for a while now AFAIK.

2025-08-06.11-06-09.mp4

@michitux michitux merged commit 4a209c2 into xwiki:master Aug 6, 2025
2 checks passed
github-actions bot pushed a commit that referenced this pull request Aug 6, 2025
* Reverted generic changes from XWIKI-22485 to make them more specific and added them in the Livedata CSS.

(cherry picked from commit 4a209c2)
github-actions bot pushed a commit that referenced this pull request Aug 6, 2025
* Reverted generic changes from XWIKI-22485 to make them more specific and added them in the Livedata CSS.

(cherry picked from commit 4a209c2)
Copy link

github-actions bot commented Aug 6, 2025

💚 All backports created successfully

Status Branch Result
stable-16.10.x
stable-17.4.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

michitux pushed a commit that referenced this pull request Aug 6, 2025
* Reverted generic changes from XWIKI-22485 to make them more specific and added them in the Livedata CSS.

(cherry picked from commit 4a209c2)
michitux pushed a commit that referenced this pull request Aug 6, 2025
* Reverted generic changes from XWIKI-22485 to make them more specific and added them in the Livedata CSS.

(cherry picked from commit 4a209c2)
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.

2 participants