Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(editor): move keyboard visibility toggle into field row

Richie McIlroy460d25b5299b
diff --git a/apps/desktop/src/routes/editor/KeyboardTab.tsx b/apps/desktop/src/routes/editor/KeyboardTab.tsx
index 7bc0b9b66..6bc74d888 100644
--- a/apps/desktop/src/routes/editor/KeyboardTab.tsx
+++ b/apps/desktop/src/routes/editor/KeyboardTab.tsx
@@ -123,15 +123,14 @@ export function KeyboardTab() {
};
return (
- <Field name="Keyboard" icon={<IconLucideKeyboard />} badge="Beta">
+ <Field
+ name="Show keyboard"
+ value={
+ <Toggle checked={getSetting("enabled")} onChange={setKeyboardVisible} />
+ }
+ badge="Beta"
+ >
<div class="flex flex-col gap-4">
- <Subfield name="Show Keyboard Presses">
- <Toggle
- checked={getSetting("enabled")}
- onChange={setKeyboardVisible}
- />
- </Subfield>
-
<div
class={cx(
"space-y-4",