hackage-server icon indicating copy to clipboard operation
hackage-server copied to clipboard

Hackage synopsis menu is broken

Open why-not-try-calmer opened this issue 3 years ago • 6 comments

The Hackage website's yellowish "synopsis" css menu is broken on my browser. That is, it fails to scroll me up or down to the target href while also intercepting page search keywords. For you as well? (I am surprised I couldn't find a similar Issue pending so perhaps it's just me...)

Flipping through Hackage users to be a joy but now it's sheer annoyance.

why-not-try-calmer avatar Jul 22 '22 09:07 why-not-try-calmer

For now I'll close with a reference to https://github.com/haskell/haddock/issues/1451

Once that haddock is released, not sure what can be done outside of trying to regenerate a ton of old docs.

gbaz avatar Jul 22 '22 14:07 gbaz

Actually -- hmm. It simply requires making sure the following little bit is in the css of the bundled haddocks:

https://github.com/haskell/haddock/pull/1486/files

I think we can try to dynamically rewrite the haddocks to insert that css.

gbaz avatar Jul 22 '22 14:07 gbaz

There's some rough code here that shows how to do it: https://github.com/haskell/hackage-server/commit/bc903d36955b52656ea4db246e000710c3c00709

gbaz avatar Jul 22 '22 14:07 gbaz

Okay thanks for stepping in. Just to be clear, from the label you've added and from your reply I take it that the maintainers are not interested in doing this? (Not trying to be patronizing here, just to clarify).

why-not-try-calmer avatar Jul 22 '22 15:07 why-not-try-calmer

On the contrary, we have ongoing gsoc work right now and I was hoping that @AliasQli would find time to look at this.

gbaz avatar Jul 22 '22 15:07 gbaz

On the contrary, we have ongoing gsoc work right now and I was hoping that @AliasQli would find time to look at this.

Ah that's great, sorry for misreading

why-not-try-calmer avatar Jul 22 '22 15:07 why-not-try-calmer

It still fails to work on my machine. Did the change hit production already?

why-not-try-calmer avatar Jan 02 '23 08:01 why-not-try-calmer

not yet, no

gbaz avatar Jan 02 '23 18:01 gbaz

In the meanwhile, something like Stylebot extension with the CSS given in the commit fixes the issue:

#synopsis details:not([open]) > ul {  
  visibility: hidden; 
}

MathiasSven avatar Nov 07 '23 00:11 MathiasSven