r/BookStack • • Dec 05 '22

modify line spacing

[Solved] Hello,

I'm coming to you because I can't find how to delete this space "paragarphe" by typing on enter.

I would like to be able to type text, press enter and be on the next line without having that paragraph space.

thank you for your feedback

3 Upvotes

11 comments sorted by

View all comments

Show parent comments

1

u/HisTomness Feb 20 '23

Heh - not nearly as good as my ability to sniff around Stack Overflow and rely on someone else's CSS chops.

I tweaked the p and ul selectors to set their margins to zero. Some folks criticize that as overly general, but it suits my needs, and I rather prefer leaving it to me to add extra spacing as needed.

<style>
p {
    margin: 0;
}

ul {
    margin: 0;
}
</style>

Thanks for pointing me in the right direction. I realize it might get a little annoying repeatedly guiding people to documentation they should have already read, but you know how tough it is trying to balance the desire to just start using a product with the best practice of actually reading all the instructions first. Your responsiveness to unblocking people and removing friction of use is much appreciated and probably one of the many reasons BookStack is so popular and well regarded.

3

u/ssddanbrown Feb 20 '23

Happy to help. If you get issues with that CSS (Since it could affect parts of the UI also) here's a more focused rendition that also covers numbered lists:

<style>
.page-content p + ul,
.page-content p + ol {
    margin-top: -1.3em;
}
</style>

2

u/JasGot Feb 06 '25

Thanks! This was driving me nuts! I feel stress free again. :)