fix: incorrect matrix

This commit is contained in:
Fredrik Burmester
2024-12-09 15:53:53 +01:00
parent 5a07eccd9b
commit 8b6c7a7603

View File

@@ -151,7 +151,26 @@ export const ItemContent: React.FC<{ item: BaseItemDto }> = React.memo(
{logoUrl ? (
<ColorMatrix
matrix={[
1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, -1,
1,
0,
0,
0,
0, // Red channel remains unchanged
0,
1,
0,
0,
0, // Green channel remains unchanged
0,
0,
1,
0,
0, // Blue channel remains unchanged
1,
1,
1,
1,
-1, // Make black (R=0, G=0, B=0) transparent
]}
style={{
height: 130,