Skip to content

Commit

Permalink
fix: Correct logo json tag in config struct
Browse files Browse the repository at this point in the history
* Set only height in the footer so that we can keep aspect ratio of logo

Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed May 22, 2024
1 parent 6231f7c commit 8ee53f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/plugin/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type Config struct {
Layout string `json:"layout"`
DashboardMode string `json:"dashboardMode"`
TimeZone string `json:"timeZone"`
EncodedLogo string `json:"encodedLogo"`
EncodedLogo string `json:"logo"`
MaxRenderWorkers int `json:"maxRenderWorkers"`
PersistData bool `json:"persistData"`
DataPath string
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/templates/footer.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
Page <span class="pageNumber"></span> of <span class="totalPages"></span>
{{- if .Logo}}
<div class="content-footer-right">
<img src="data:image/png;base64,{{.Logo}}" width="25" height="25" alt="Logo" />
<img src="data:image/png;base64,{{.Logo}}" height="25" alt="Logo" />
</div>
{{- end}}
</div>
Expand Down

0 comments on commit 8ee53f5

Please sign in to comment.