From ffe3cd0e8a1d241a264bfcdf9d2d8858935e17d6 Mon Sep 17 00:00:00 2001 From: Tigran Date: Tue, 23 Apr 2024 13:39:25 +0400 Subject: [PATCH 1/2] fix: make sure black keys maintain aspect ratio --- src/presets/realistic.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/presets/realistic.tsx b/src/presets/realistic.tsx index 93c826e..d1861fd 100644 --- a/src/presets/realistic.tsx +++ b/src/presets/realistic.tsx @@ -31,7 +31,13 @@ const BlackKey = (props: CustomKeyProps) => { return (
- + {SVG}
From 0b5c2a25852a7ba7a17a622bf4a3b4d0aca6a733 Mon Sep 17 00:00:00 2001 From: Tigran Date: Tue, 23 Apr 2024 13:37:38 +0400 Subject: [PATCH 2/2] fix: active white keys turning black in Safari --- src/presets/realistic.tsx | 232 +++++++++++++++++++------------------- 1 file changed, 116 insertions(+), 116 deletions(-) diff --git a/src/presets/realistic.tsx b/src/presets/realistic.tsx index d1861fd..f5c0195 100644 --- a/src/presets/realistic.tsx +++ b/src/presets/realistic.tsx @@ -18,6 +18,121 @@ const WhiteKey = (props: CustomKeyProps) => { className="klavier-realistic-key-svg" > {SVG} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); @@ -57,34 +172,6 @@ const whiteKeyVariants = { fill="url(#paint1_linear_236_893)" fillOpacity="0.5" /> - - - - - - - - - - - - - - ), @@ -92,7 +179,7 @@ const whiteKeyVariants = { <> - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ), };