Merge pull request #15 from tokenflow1m/fix/hud-overlay-clipping

Fix HUD overlay clipping and scrollbar on Windows
This commit is contained in:
webadderall
2026-03-15 17:06:58 +11:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -28,7 +28,7 @@ export function createHudOverlayWindow(): BrowserWindow {
const { workArea } = primaryDisplay;
const windowWidth = 500;
const windowWidth = 600;
const windowHeight = 155;
const x = Math.floor(workArea.x + (workArea.width - windowWidth) / 2);
@@ -37,8 +37,8 @@ export function createHudOverlayWindow(): BrowserWindow {
const win = new BrowserWindow({
width: windowWidth,
height: windowHeight,
minWidth: 500,
maxWidth: 500,
minWidth: 600,
maxWidth: 600,
minHeight: 155,
maxHeight: 155,
x: x,
+2 -2
View File
@@ -152,7 +152,7 @@ export function LaunchWindow() {
};
return (
<div className="w-full h-full flex items-end justify-center bg-transparent">
<div className="w-full h-full flex items-end justify-center bg-transparent overflow-hidden">
<div className={`flex flex-col items-center gap-2 mx-auto ${styles.electronDrag}`}>
{showMicControls && (
<div
@@ -177,7 +177,7 @@ export function LaunchWindow() {
)}
<div
className={`w-full max-w-[560px] mx-auto flex items-center gap-1.5 px-3 py-2 ${styles.electronDrag} ${styles.hudBar}`}
className={`w-full mx-auto flex items-center gap-1.5 px-3 py-2 ${styles.electronDrag} ${styles.hudBar}`}
style={{
borderRadius: 9999,
background: "linear-gradient(135deg, rgba(28,28,36,0.97) 0%, rgba(18,18,26,0.96) 100%)",