Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
[#671] add attribute class "logo"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenarp committed Oct 15, 2021
1 parent 99daa3e commit 29ae64c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/main/app/src/Components/Landscape/Map/Map.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
fill: rgba(255, 255, 255, 0.75);
}

@media screen {
.title {
display: none;
}
.logo {
display: none;
}
}
/*@media screen {*/
/* .title {*/
/* display: none;*/
/* }*/
/* !*.logo {*!*/
/* !* display: none;*!*/
/* !*}*!*/
/*}*/

.landscapeMapContainer .map .details {
border: 1px solid #3f51b5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ private DomContent getLogo(SVGDimension dimension) {
.attr("x", dimension.cartesian.horMin - dimension.cartesian.padding)
.attr("y", dimension.cartesian.vertMin - dimension.cartesian.padding + 80)
.attr("width", LABEL_WIDTH)
.attr("height", LABEL_WIDTH);
.attr("height", LABEL_WIDTH)
.attr("class", "logo");
}
return logo;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ void renderInout() throws IOException {
String path = "/src/test/resources/example/inout";
Landscape landscape = getLandscape(path + ".yml");
String svg = renderLandscape(path, landscape);
System.out.println(svg);
assertTrue(svg.contains("svg version=\"1.1\""));
assertTrue(svg.contains("class=\"title\">Input and Output</text>"));
assertThat(svg).contains("<g data-identifier=\"inout/output/svg\" class=\"item");
assertTrue(svg.contains(">Docker Compose files</text>"));
}


@Test
void renderCustomFill() throws IOException {

Expand Down Expand Up @@ -71,4 +73,7 @@ void embedsExternalImages() throws IOException, URISyntaxException {
.contains("fill=\"url(#Wm05dg==)\""); //pattern for "foo" response

}



}

0 comments on commit 29ae64c

Please sign in to comment.