More fine-tuning of max dimensions for images

This commit is contained in:
seednode 2024-05-28 19:41:13 -04:00
parent 66586ba32d
commit 5440346b08
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ import (
const (
AllowedCharacters string = `^[A-z0-9.\-_]+$`
ReleaseVersion string = "8.8.3"
ReleaseVersion string = "8.8.4"
)
var (

View File

@ -49,7 +49,7 @@ func (t Format) CSS() string {
css.WriteString(`a{color:inherit;display:block;height:97%;width:100%;text-decoration:none;}`)
}
css.WriteString(`table{margin-left:auto;margin-right:auto;}`)
css.WriteString(`img{margin:auto;display:block;max-width:96%;max-height:96%;`)
css.WriteString(`img{margin:auto;display:block;max-width:96%;max-height:95%;`)
css.WriteString(`object-fit:scale-down;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)`)
if t.Fun {
rotate := rand.Intn(360)