Jump to content
View in the app

A better way to browse. Learn more.

Learn more

[BUG] Upshrink Nested Spoiler-Box Height Incorrect

Featured Replies

  • Community Expert

A small part of the spoilered content is shown when it is nested within a Box. I have not extensively tested this with other combinations of box types.

There is also a small discrepancy with paragraph spacing.

For anyone looking for a solution to these small bugs:

/* Fix for parapgraph spacing in Boxes and Spoilers */
details.ipsRichTextBox.ipsRichTextBox--expandable.ipsRichText__no-index p {
  margin-bottom: 0;
}

/* Fix for incorrect spoiler box height when nested within a Box */
.ipsRichTextBox.ipsRichTextBox--expandable.ipsRichText__no-index {
  height: 3.5em;
}
[open].ipsRichTextBox.ipsRichTextBox--expandable.ipsRichText__no-index {
  height: 100%;
}

I don't suppose these are best solutions, but they work for me.

That long string of classes in the first rule prevents it from being applied to (and breaking) spoilers in the Page editor.

  • Community Expert

Im not able to replicate this. Could you please confirm Im checking the correct thing here?

image.png

image.png

  • Author
  • Community Expert
1 hour ago, Marc said:

Im not able to replicate this. Could you please confirm Im checking the correct thing here?

image.png

image.png

Your first images demonstrates the issue. Compare that with a non-nested spoiler (it is shows the spoiler heading).

Edited by Como

  • Author
  • Community Expert
45 minutes ago, Marc said:

Spoiler

They always show the heading

Of course. But your image shows the horizontal rule and space underneath, which reflects my experience. The is in the spoiled mode (and nested), and does not occur when unnested.

I removed my CSS and this is the result:

image.png

When I add my CSS:

image.png

And testing here:

Box Title

Content.

Spoiler Title

Spoiler content

Spoiler Title

Spoiler content

Similar result to my site.

Edited by Como

  • Community Expert

Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.

  • Author
  • Community Expert

By the way, my bug report was for Pages - but it obviously occurs within posts too.

Recently Browsing 0

  • No registered users viewing this page.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.