Make logo 48px

This commit is contained in:
Pim van Pelt
2025-12-03 12:39:37 +01:00
parent 99ad6fbff1
commit 0b687bf9d9

View File

@@ -461,6 +461,15 @@ const htmlTemplateString = `<!DOCTYPE html>
padding-top: 25px; padding-top: 25px;
padding-bottom: 15px; padding-bottom: 15px;
background-color: #f2f2f2; background-color: #f2f2f2;
display: flex;
align-items: center;
}
.watermark {
height: 48px;
width: auto;
margin-right: 12px;
flex-shrink: 0;
} }
h1 { h1 {
@@ -470,15 +479,8 @@ const htmlTemplateString = `<!DOCTYPE html>
overflow-x: hidden; overflow-x: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
color: #999; color: #999;
display: flex; margin: 0;
align-items: center; flex: 1;
}
.watermark {
height: 24px;
width: auto;
margin-right: 8px;
vertical-align: middle;
} }
h1 a { h1 a {
@@ -955,7 +957,8 @@ const htmlTemplateString = `<!DOCTYPE html>
</defs> </defs>
</svg> </svg>
<header> <header>
<h1>{{if .WatermarkURL}}<img src="{{.WatermarkURL}}" class="watermark" alt="Logo">{{end}}{{.DirName}}</h1> {{if .WatermarkURL}}<img src="{{.WatermarkURL}}" class="watermark" alt="Logo">{{end}}
<h1>{{.DirName}}</h1>
</header> </header>
<main> <main>
<div class="listing"> <div class="listing">