feat: make interface slightly bigger

This commit is contained in:
Louis Dalibard 2024-06-10 22:10:25 +02:00
parent ccaa514080
commit 4984db587d
6 changed files with 4 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 627 B

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 642 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 642 B

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -41,6 +41,7 @@ func FileListPage(req string, entries []Entry) string {
background-image: url(/assets/images/logo-64px-padded.png); background-image: url(/assets/images/logo-64px-padded.png);
background-blend-mode: difference; background-blend-mode: difference;
text-align: center; text-align: center;
font-size: 32px;
} }
#content,#footer { #content,#footer {
position: relative; position: relative;
@ -61,12 +62,13 @@ func FileListPage(req string, entries []Entry) string {
a { a {
color: var(--text-color); color: var(--text-color);
text-decoration: none; text-decoration: none;
font-size: 16px; font-size: 32px;
} }
.entry { .entry {
display: flex; display: flex;
} }
.entry-name { .entry-name {
margin-left: 16px;
margin-right: auto; margin-right: auto;
} }
#leech { #leech {

View File

@ -24,7 +24,7 @@ var FileTypesMap = map[string]imaging.Format{
".jpeg": imaging.JPEG, ".jpeg": imaging.JPEG,
".JPEG": imaging.JPEG, ".JPEG": imaging.JPEG,
} }
var thumbnailSize = 24 var thumbnailSize = 48
var thumbnailCache = map[string][]byte{} var thumbnailCache = map[string][]byte{}
var thumbnailCacheMutex = &sync.RWMutex{} var thumbnailCacheMutex = &sync.RWMutex{}