GuavaCZ/filament-knowledge-base

[Bug]: On smaller screens the anchor (#) on headings partly falls of the screen

Closed this issue ยท 9 comments

What happened?

See title

How to reproduce the bug

X

Package Version

latest

PHP Version

latest

Laravel Version

latest

Which operating systems does with happen with?

No response

Notes

No response

Oops, good catch. I'll try to work through all the issues tomorrow :-)

Oops, good catch. I'll try to work through all the issues tomorrow :-)

Personally not a fan of those markers. I think they should be, again, optional :-D

Oops, good catch. I'll try to work through all the issues tomorrow :-)

Personally not a fan of those markers. I think they should be, again, optional :-D

Why optional though? Just don't use them if you don't like them and they will never appear anywhere? :D

EDIT: Or actually, what are you referring to? Table of contents on the right or the actual markers in markdown? (when you write ==something==)

Sorry my bad, I meant the anchors that are automatically added to headings :-) (#)

image

(don't know why I called them markers :D)

Oooh, you mean that! So you're suggesting to keep the table of contents on the right, but disable the anchors on the left? ๐Ÿค”

Would you prefer if it appeared only on hover though? That was also a possibility I was considering :D

Oooh, you mean that! So you're suggesting to keep the table of contents on the right, but disable the anchors on the left? ๐Ÿค”

Yes

Would you prefer if it appeared only on hover though? That was also a possibility I was considering :D

That would be one possibility yes. But I wouldn't miss them if they were gone completely :-)

Yeah, I'm thinking adding some "empty" gu-kb- classes everywhere just like filament does, so you can style most stuff however you see fit, add a disable option and maybe one or two presets you can choose from (the way it is now + maybe the hovering version).

Fixed in 1.3.0. Works on smaller screens and can be disabled entirely.

Thanks Lukas, you rock!