From 70630d880335d371c01288b0ffc9b39685938516 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 7 Feb 2024 17:04:43 -0800 Subject: [PATCH] fix rendering of the 104 key keyboard. disable the option to hide unused features, as we're going in a different direction (we're going to show the features as unavailable with a tooltip. This both eases rendering and helps advertise firmware features.) --- src/renderer/screens/Editor/Keyboard104.js | 4 +++- .../Preferences/ui/LayoutEditorPreferences.js | 15 +++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/renderer/screens/Editor/Keyboard104.js b/src/renderer/screens/Editor/Keyboard104.js index 0bdcb79a4..eaec0ea71 100644 --- a/src/renderer/screens/Editor/Keyboard104.js +++ b/src/renderer/screens/Editor/Keyboard104.js @@ -106,11 +106,13 @@ const KeySelector = (props) => { viewBox={"0 0 " + Math.round(23 * keycapunit).toString() + " " + Math.round(6.5 * keycapunit).toString()} xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMin meet" - height="15rem" className={props.className} style={{ display: "block", fontWeight: 400, + maxHeight: "15rem", + maxWidth: "100%", + fontSize: Math.round(keycapunit / 4), }} > diff --git a/src/renderer/screens/Preferences/ui/LayoutEditorPreferences.js b/src/renderer/screens/Preferences/ui/LayoutEditorPreferences.js index 771f9ad0e..20b4b9682 100644 --- a/src/renderer/screens/Preferences/ui/LayoutEditorPreferences.js +++ b/src/renderer/screens/Preferences/ui/LayoutEditorPreferences.js @@ -104,12 +104,15 @@ function LayoutEditorPreferences(props) { null} layout={layout} /> - + {0 & + ( + + )} ); }