Possible fix for alt text flickering before image load in Firefox

This commit is contained in:
Seednode 2023-10-03 11:17:59 -05:00
parent 5a37bf3beb
commit 7d1ae04849
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import (
)
const (
ReleaseVersion string = "2.3.1"
ReleaseVersion string = "2.3.2"
)
var (

View File

@ -55,7 +55,7 @@ func (t Format) Body(rootUrl, fileUri, filePath, fileName, prefix, mime string)
return "", err
}
return fmt.Sprintf(`<a href="%s"><img src="%s" width="%d" height="%d" type="%s" alt="Roulette selected: %s"></a>`,
return fmt.Sprintf(`<a href="%s"><img style="color: transparent;" onload="this.style.color='inherit'" onerror="this.style.color='inherit'" src="%s" width="%d" height="%d" type="%s" alt="Roulette selected: %s"></a>`,
rootUrl,
fileUri,
dimensions.width,