extent-framework / extentreports-java

Extent Reporting Library, Java
http://extentreports.com
Apache License 2.0
220 stars 126 forks source link

My long names overlap if I include them. Please let me know if you have a solution. #429

Closed Sai7574 closed 2 months ago

Sai7574 commented 6 months ago

My long names overlap if I include them. Please let me know if you have a solution.

image test = extent.createTest( "Verification of Area Usage with Return decision at check transaction and Restart, Restop and Approve at Check Transaction.") .assignAuthor(ConfigsReader.getPropValue("usernameRev")).assignCategory( "Verification of Area Usage with Return decision at check transaction and Restart, Restop and Approve at Check Transaction."); We are using this code, similar to the scenario name.

anshooarora commented 2 months ago

Here is what I found (notice the viewport size at the top-right of both screenshots):

Screenshot 2024-07-02 at 4 40 12 PM

Screenshot 2024-07-02 at 4 38 01 PM

Your viewport is <= 1478px. This is where this exact tag starts to break layout.

A simple fix:

// you can inject the below js:
$(document).ready(function() {
  $(".detail-head .info + div").addClass("tag-info");            
});
/* and the following css */
@media only screen and (max-width: 1500px) {
  .tag-info { margin-top: 35px !important; }
}

Just curious though, the tag name is the same as the test name - why? It's really long. :)

I'm closing this issue as the above would resolve it. Feel free to reopen this or a new issue if the issue persists. Note: I tested with the latest version: 5.1.2.