diff --git a/pkg/web/webui_bugs.go b/pkg/web/webui_bugs.go index 4f081ec22c1dd71d2fddb0b75c88e9fc1e5ca85c..cea00f05cc67cf51bbaa102748b9e20f8e06e917 100644 --- a/pkg/web/webui_bugs.go +++ b/pkg/web/webui_bugs.go @@ -289,13 +289,9 @@ func findBugByHash(rc *cache.RepoCache, hash string) (*cache.BugCache, error) { func labelToWebLabel(label common.Label) Label { rgba := label.Color().RGBA() - // RGBA() returns 16-bit channels (0-65535), convert to 8-bit (0-255) - r8 := uint8(rgba.R >> 8) - g8 := uint8(rgba.G >> 8) - b8 := uint8(rgba.B >> 8) return Label{ Name: label.String(), - Color: fmt.Sprintf("#%02x%02x%02x", r8, g8, b8), + Color: fmt.Sprintf("#%02x%02x%02x", rgba.R, rgba.G, rgba.B), } }