Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

Merge main into fix/305-hud-horizontal-scrollbar

Siddharthb7d1864a0b5e
diff --cc src/App.tsx
index 985ecc7c8,4045b5dc6..f5fa7d69f
--- a/src/App.tsx
+++ b/src/App.tsx
@@@ -20,23 -25,9 +25,23 @@@ export default function App()
document.documentElement.style.background = "transparent";
document.getElementById("root")?.style.setProperty("background", "transparent");
}
+
- // HUD window is a small fixed-size BrowserWindow (`electron/windows.ts`), not a full-screen
- // surface. Pin the document shell to that viewport and hide overflow so the renderer cannot
- // introduce scrollbars. Without this, `h-full` in `LaunchWindow` has no definite height chain
- // from `html`/`body`, and stray overflow can still appear on some hosts (see issue #305).
++ // HUD is a fixed-size BrowserWindow; pin the document shell and hide overflow
++ // so the renderer can't introduce scrollbars (see issue #305).
+ if (type === "hud-overlay") {
+ document.documentElement.style.height = "100%";
+ document.documentElement.style.overflow = "hidden";
+ document.body.style.height = "100%";
+ document.body.style.margin = "0";
+ document.body.style.overflow = "hidden";
+ const root = document.getElementById("root");
+ root?.style.setProperty("height", "100%");
+ root?.style.setProperty("min-height", "0");
+ root?.style.setProperty("overflow", "hidden");
+ }
+ }, [windowType]);
+ useEffect(() => {
// Load custom fonts on app initialization
loadAllCustomFonts().catch((error) => {
console.error("Failed to load custom fonts:", error);
diff --cc src/components/launch/LaunchWindow.tsx
index 5c5ec921c,9b7d80907..bffbd9c9a
--- a/src/components/launch/LaunchWindow.tsx
+++ b/src/components/launch/LaunchWindow.tsx
@@@ -241,30 -314,42 +314,48 @@@ export function LaunchWindow()
};
return (
- // Root fills the HUD window only. Avoid `w-screen`/`h-screen` (`100vw`/`100vh`): `100vw` can
- // exceed the inner layout width when scrollbars affect the viewport (notably on Windows), which
- // showed up as a horizontal scrollbar once recording widened the toolbar (issue #305).
- <div className={`w-screen h-screen overflow-x-hidden bg-transparent ${styles.electronDrag}`}>
++ // Root fills the HUD window only. Avoid w-screen/h-screen (100vw/100vh):
++ // 100vw can exceed the inner layout width when scrollbars affect the
++ // viewport (notably on Windows), causing a horizontal scrollbar once the
++ // recording toolbar widened (issue #305).
+ <div
+ className={`h-full w-full min-w-0 max-w-full overflow-x-hidden overflow-y-hidden bg-transparent ${styles.electronDrag}`}
+ >
- {/* Language switcher — top-left, beside traffic lights */}
- <div
- className={`fixed top-2 flex items-center gap-1 px-2 py-1 rounded-md text-white/50 hover:text-white/90 hover:bg-white/10 transition-all duration-150 ${isMac ? "left-[72px]" : "left-2"} ${styles.electronNoDrag}`}
- >
- <Languages size={14} />
- <select
- value={locale}
- onChange={(e) => setLocale(e.target.value as Locale)}
- className="bg-transparent text-[11px] font-medium outline-none cursor-pointer appearance-none pr-1"
- style={{ color: "inherit" }}
+ {systemLocaleSuggestion && (
+ <div
+ className={`fixed top-8 left-1/2 z-30 w-[calc(100vw-1rem)] max-w-[520px] -translate-x-1/2 rounded-xl border border-white/15 bg-[rgba(20,20,28,0.95)] p-3 shadow-2xl backdrop-blur-xl text-white animate-in fade-in-0 zoom-in-95 duration-200 ${styles.electronNoDrag}`}
>
- {SUPPORTED_LOCALES.map((loc) => (
- <option key={loc} value={loc} className="bg-[#1c1c24] text-white">
- {getLocaleName(loc)}
- </option>
- ))}
- </select>
- </div>
+ <div className="text-[13px] font-semibold text-white">
+ {t("systemLanguagePrompt.title")}
+ </div>
+ <div className="mt-1 text-[11px] leading-relaxed text-white/75">
+ {t("systemLanguagePrompt.description", {
+ language: suggestedLanguageName,
+ })}
+ </div>
+ <div className="mt-3 flex items-center justify-end gap-2">
+ <Button
+ type="button"
+ variant="ghost"
+ size="sm"
+ onClick={dismissSystemLocaleSuggestion}
+ className="h-7 text-xs text-white/80 hover:bg-white/10 hover:text-white"
+ >
+ {t("systemLanguagePrompt.keepDefault")}
+ </Button>
+ <Button
+ type="button"
+ size="sm"
+ onClick={acceptSystemLocaleSuggestion}
+ className="h-7 text-xs bg-white text-[#10121b] hover:bg-white/90"
+ >
+ {t("systemLanguagePrompt.switch", {
+ language: suggestedLanguageName,
+ })}
+ </Button>
+ </div>
+ </div>
+ )}
{/* Device selectors — fixed above HUD bar, viewport-relative, never clipped */}
{(showMicControls || showWebcamControls) && (