consolidate stylesheets

This commit is contained in:
f0x 2024-11-05 15:52:45 +01:00
commit 6aa580a470
12 changed files with 183 additions and 50 deletions

View file

@ -115,17 +115,7 @@ func (m *Module) threadGETHandler(c *gin.Context) {
}
// Prepare stylesheets for thread.
stylesheets := make([]string, 0, 5)
// Basic thread stylesheets.
stylesheets = append(
stylesheets,
[]string{
cssFA,
cssStatus,
cssThread,
}...,
)
stylesheets := make([]string, 0, 2)
// User-selected theme if set.
if theme := targetAccount.Theme; theme != "" {