Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(export): remove UI size multiplier workarounds

Richie McIlroy3cd4063d03be
diff --git a/apps/desktop/src/routes/editor/ExportPage.tsx b/apps/desktop/src/routes/editor/ExportPage.tsx
index fd8e011fa..817d36e36 100644
--- a/apps/desktop/src/routes/editor/ExportPage.tsx
+++ b/apps/desktop/src/routes/editor/ExportPage.tsx
@@ -730,8 +730,7 @@ export function ExportPage() {
exportSpeedMultiplier;
const estimatedTimeSeconds = Math.max(1, totalTimeMs / 1000);
- const sizeMultiplier = settings.format === "Gif" ? 0.7 : 0.5;
- const estimatedSizeMb = data.estimatedSizeMb * sizeMultiplier;
+ const estimatedSizeMb = data.estimatedSizeMb;
return (
<div class="flex items-center justify-center gap-4 mt-4 h-4 text-xs text-gray-11">
@@ -1203,11 +1202,9 @@ export function ExportPage() {
</span>
<Show when={renderEstimate()}>
{(est) => {
- const sizeMultiplier = settings.format === "Gif" ? 0.7 : 0.5;
return (
<span>
- Estimated size:{" "}
- {(est().estimatedSizeMb * sizeMultiplier).toFixed(1)} MB
+ Estimated size: {est().estimatedSizeMb.toFixed(1)} MB
</span>
);
}}