YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat: overlay size support for webview fallback (Windows/Linux)
Louis Beaumontd095f5994013
diff --git a/apps/screenpipe-app-tauri/app/shortcut-reminder/page.tsx b/apps/screenpipe-app-tauri/app/shortcut-reminder/page.tsxindex e5f7a0688..958bafd5f 100644--- a/apps/screenpipe-app-tauri/app/shortcut-reminder/page.tsx+++ b/apps/screenpipe-app-tauri/app/shortcut-reminder/page.tsx@@ -73,6 +73,7 @@ export default function ShortcutReminderPage() {const [searchShortcut, setSearchShortcut] = useState<string | null>(null);const overlayData = useOverlayData();const meeting = useMeetingState();+ const [overlayScale, setOverlayScale] = useState(1);const isMacRef = useRef(isMac);isMacRef.current = isMac;@@ -92,6 +93,10 @@ export default function ShortcutReminderPage() {if (settings?.searchShortcut) {setSearchShortcut(formatShortcut(settings.searchShortcut, isMacRef.current));}+ if (settings?.shortcutOverlaySize) {+ const s = settings.shortcutOverlaySize;+ setOverlayScale(s === "large" ? 2 : s === "medium" ? 1.5 : 1);+ }} catch (e) {console.error("Failed to read shortcuts from store file:", e);}@@ -181,7 +186,11 @@ export default function ShortcutReminderPage() {<divonMouseDown={handleMouseDown}className="select-none"- style={{ cursor: "grab" }}+ style={{+ cursor: "grab",+ transform: overlayScale !== 1 ? `scale(${overlayScale})` : undefined,+ transformOrigin: "center center",+ }}><divclassName="border border-white/20"diff --git a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs b/apps/screenpipe-app-tauri/src-tauri/src/commands.rsindex eab8bc8d5..b4f77630d 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/commands.rs@@ -1031,9 +1031,19 @@ pub async fn show_shortcut_reminder(}// Window dimensions: 2-row grid (3 shortcuts + activity viz)- // 3 columns: timeline, chat, search. Auto-sized columns shrink to content.- let window_width = 160.0;- let window_height = 40.0;+ // Scale based on overlay size setting+ let scale = match crate::store::SettingsStore::get(&app_handle)+ .unwrap_or_default()+ .unwrap_or_default()+ .shortcut_overlay_size+ .as_str()+ {+ "large" => 2.0_f64,+ "medium" => 1.5,+ _ => 1.0,+ };+ let window_width = 160.0 * scale;+ let window_height = 40.0 * scale;// Position at top center of the screen where the cursor islet (x, y) = {