Skip to content

Conversation

@jrauh01
Copy link
Contributor

@jrauh01 jrauh01 commented Dec 2, 2025

Only collapse the y-axis if an collapsible item is collapsed. Additional styling in the horizontal level that overflows the x-axis should still be possible.

...if an collapsible item is collapsed. Additional styling in the
horizontal level that overflows the x-axis  should still be possible.
@jrauh01 jrauh01 self-assigned this Dec 2, 2025
@cla-bot cla-bot bot added the cla/signed label Dec 2, 2025
jrauh01 added a commit to Icinga/icinga-kubernetes-web that referenced this pull request Dec 2, 2025
To prevent the left and right paddings to be cut off. This will be
fixed in Icinga/icingaweb2#5456. Then this
commit can be reverted.
@jrauh01 jrauh01 requested a review from lippserd December 2, 2025 10:53

.collapsible.collapsed:not(details) {
overflow: hidden;
overflow-y: clip;
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason why you chose clip instead of hidden? After a quick search, clip seems to be better than hidden in terms of scrolling, which sounds good, but should be justified in the commit and PR description.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, of course there should absolutely be a justification for that! Indeed there is a strong reason why I use clip instead of hidden. As soon as you use hidden on one axis, the other axis can no longer remain visible. This was the reason why the clip option was introduced in the first place. To clip overflow of one axis while leaving the other axis unaffected.

This is exactly what this PR should do:

  1. Clip of the overflow on the y axis
  2. Keep the overflow on the x axis visible

@jrauh01 jrauh01 requested a review from lippserd December 9, 2025 07:28
@jrauh01
Copy link
Contributor Author

jrauh01 commented Dec 10, 2025

Note: If this PR is merged the part marked for removal in Icinga/icinga-kubernetes-web#167 can be undone.

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.

3 participants