diff --git a/main/src/main/java/org/mobilitydata/gtfsvalidator/report/model/NoticeView.java b/main/src/main/java/org/mobilitydata/gtfsvalidator/report/model/NoticeView.java index 1075a64c62..2bb68c0130 100644 --- a/main/src/main/java/org/mobilitydata/gtfsvalidator/report/model/NoticeView.java +++ b/main/src/main/java/org/mobilitydata/gtfsvalidator/report/model/NoticeView.java @@ -23,7 +23,7 @@ public NoticeView(ResolvedNotice notice) { this.notice = notice; this.json = notice.getContext().toJsonTree().getAsJsonObject(); this.fields = new ArrayList<>(json.keySet()); - this.comments = NoticeSchemaGenerator.loadComments(notice.getClass()); + this.comments = NoticeSchemaGenerator.loadComments(notice.getContext().getClass()); } /** diff --git a/main/src/main/resources/report.html b/main/src/main/resources/report.html index bf5637a664..b1d3d1eb40 100644 --- a/main/src/main/resources/report.html +++ b/main/src/main/resources/report.html @@ -73,6 +73,7 @@ .summary-cell { padding: 5px; box-sizing: border-box; + flex: 1; } .summary h4 { @@ -129,10 +130,19 @@ position: absolute; z-index: 1; bottom: 100%; - left: 50%; - margin-left: -60px; + transform: translateX(-50%); opacity: 0; transition: opacity 0.3s; + max-width: 400px; + min-width: 100px; + width: max-content; + white-space: normal; + } + + .tooltip { + position: relative; + display: inline-block; + cursor: help; } .tooltip:hover .tooltiptext { @@ -262,7 +272,12 @@

Counts

-

GTFS Components included

+

+ GTFS Components included + (?) + GTFS components provide a standardized vocabulary to define and describe features that are officially adopted in GTFS. + +