kswedberg / jquery-expander

Expand and Collapse HTML content

Home Page:https://kswedberg.github.io/jquery-expander/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whitespace between span.read-more and span.details?

Juuro opened this issue · comments

By default the details span has set display: inline-block. Because of that the details span appears in a new line when expanded. In my case I need the details span to be directly attached to the preview text. As if there was no Expander at all. So I set display: inline;for it. But I found out that Expander puts a single whitespace before the details span. That happens here: https://github.com/kswedberg/jquery-expander/blob/master/jquery.expander.js#L396. Is that somehow necessary for something? However the expandPrefix option already provides a possibility to put a whitespace before the details.

For now I customise my version of Expander. But from my perspective and with upgradeability in mind I would be happy to see this whitespace avoided in a future release. :-)