From e6578d1da2d1ce98ce2fa8ddd0973275a5e2613d Mon Sep 17 00:00:00 2001 From: Jose B Date: Fri, 21 Jul 2023 07:13:21 -0500 Subject: [PATCH] minor fix --- app/components/record.js | 1 + app/globals.scss | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/components/record.js b/app/components/record.js index de9897cb..6079a920 100644 --- a/app/components/record.js +++ b/app/components/record.js @@ -69,6 +69,7 @@ export default function Recorder(props) { record.stopRecording(); setIsRecording(false); document.getElementById("play-btn").disabled = false; + props.onStop() } else { const stream = await navigator.mediaDevices.getUserMedia({ audio: { deviceId }, diff --git a/app/globals.scss b/app/globals.scss index a1c78d64..acc5dae4 100644 --- a/app/globals.scss +++ b/app/globals.scss @@ -8,14 +8,6 @@ --background-end-rgb: 255, 255, 255; } -@media (prefers-color-scheme: dark) { - :root { - --foreground-rgb: 255, 255, 255; - --background-start-rgb: 32, 32, 32; - --background-end-rgb: 32, 32, 32; - } -} - body { background: linear-gradient( to bottom, @@ -25,6 +17,7 @@ body { rgb(var(--background-start-rgb)); font-family: "Roboto", sans-serif; + color: var(--foreground-rgb); } .temp-transcription {