Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

sourcewindow fix spacing

Siddharth310bd40593b9
diff --git a/dist-electron/main.js b/dist-electron/main.js
index d3dd1efb..9c18f09c 100644
--- a/dist-electron/main.js
+++ b/dist-electron/main.js
@@ -318,7 +318,7 @@ async function cleanupOldRecordings() {
try {
const files = await fs.readdir(RECORDINGS_DIR);
const now = Date.now();
- const maxAge = 7 * 24 * 60 * 60 * 1e3;
+ const maxAge = 1 * 24 * 60 * 60 * 1e3;
for (const file of files) {
const filePath = path.join(RECORDINGS_DIR, file);
const stats = await fs.stat(filePath);
diff --git a/src/components/SourceSelector.tsx b/src/components/SourceSelector.tsx
index 999d2db8..037fe2f8 100644
--- a/src/components/SourceSelector.tsx
+++ b/src/components/SourceSelector.tsx
@@ -96,7 +96,7 @@ export function SourceSelector() {
{screenSources.map((source) => (
<Card
key={source.id}
- className={`cursor-pointer transition-all hover:shadow-lg h-fit ${
+ className={`cursor-pointer transition-all hover:shadow-lg h-fit scale-90 p-2 ${
selectedSource?.id === source.id
? 'ring-2 ring-gray-700 bg-gray-50'
: 'hover:ring-1 hover:ring-gray-300 bg-white border border-gray-200'
@@ -139,6 +139,7 @@ export function SourceSelector() {
? 'ring-2 ring-gray-700 bg-gray-50'
: 'hover:ring-1 hover:ring-gray-300 bg-white border border-gray-200'
}`}
+ style={{ transform: 'scale(0.9)', margin: '8px' }}
onClick={() => handleSourceSelect(source)}
>
<div className="p-3">