gitbucket-asciidoctor-plugin icon indicating copy to clipboard operation
gitbucket-asciidoctor-plugin copied to clipboard

code block rendering is incorrect on GitBucket 4.16

Open kazuki43zoo opened this issue 8 years ago • 4 comments
trafficstars

See gitbucket/gitbucket#1698.

kazuki43zoo avatar Sep 11 '17 16:09 kazuki43zoo

Thanks for your report.

I think, this is an incompatibility with the newly introduced AdminLTE in gitbucket.

lefou avatar Sep 21 '17 07:09 lefou

This issue is still present in current master with GitBucket 4.26.

If anybody has an idea how to fix it, I'd be very glad to accept your PR.

lefou avatar Jul 17 '18 09:07 lefou

Here is a simple way to reproduce:

  • Start a local test server with: make localServer
  • Open http://localhost:8080
  • Login with root/root
  • Create a new repo with empty commit
  • Create a new file Test.adoc with following content
= Test

.Simple Java class
[source,java]
----
public class Sample {
}
----

This is a sample java code.

lefou avatar Jul 17 '18 09:07 lefou

GitBucket 4.34.0 allows to use custom CSS, so I think that we can write the following to improve the display (ref: https://github.com/gitbucket/gitbucket/issues/1698#issue-255643612).

.content {
  min-height: auto;
}

This is a temporary solution, but I hope it is helpful.

gemmaro avatar Jul 27 '20 10:07 gemmaro