Skip to content
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

[Bug] Weird header multiline text #198

Open
UzverUA opened this issue Jul 24, 2023 · 1 comment
Open

[Bug] Weird header multiline text #198

UzverUA opened this issue Jul 24, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@UzverUA
Copy link

UzverUA commented Jul 24, 2023

Describe the bug
When header is rendered on page in multiple lines - text is placed below heading sign "#" and it just won't go back to the same line with "#" signs
For example, it should look like this
Snipaste_2023-07-24_21-33-00
And instead it looks like this
Snipaste_2023-07-24_21-33-24

And when you place cursor behind "asdfasfd", and press backspace - it won't place that line back to "#" line. So it displays wrong, but acts as if "asdfasfd..." line was in same line with "#"

To Reproduce
Steps to reproduce the behavior:

  1. Create any header
  2. Make it too long to fit in single line

Additional context
Tested on sandbox vault with only AnuPpuccin theme - same. I'm pretty new into CSS, so I spent an hour trying to figure out what causes such behavior. And finally found it.
Line 5149 in theme css.
.cm-header { display: inline-block; }
Changed it to initial and everything renders perfectly.

@UzverUA UzverUA added the bug Something isn't working label Jul 24, 2023
@serenefemme
Copy link

The CSS snippet OP mentioned does work, but it also breaks the Enable Custom Heading Margin setting when using the Style Settings plugin. Is there any other solution that would prevent the custom margins from breaking?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants