Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(web): center share video player with aspect-video sizing
Richie McIlroy584f438a90a7
diff --git a/apps/web/app/s/[videoId]/Share.tsx b/apps/web/app/s/[videoId]/Share.tsxindex 77709409a..1811f0ec2 100644--- a/apps/web/app/s/[videoId]/Share.tsx+++ b/apps/web/app/s/[videoId]/Share.tsx@@ -525,7 +525,13 @@ export const Share = ({<div className="flex flex-col gap-4 lg:flex-row"><div className="flex-1"><div className="overflow-visible relative bg-white rounded-2xl border aspect-video border-gray-5">- <div className="absolute inset-3 w-[calc(100%-1.5rem)] h-[calc(100%-1.5rem)] overflow-visible rounded-xl">+ <div+ className={+ isScreenshot+ ? "absolute inset-3 w-[calc(100%-1.5rem)] h-[calc(100%-1.5rem)] overflow-visible rounded-xl"+ : "absolute inset-x-3 top-1/2 aspect-video -translate-y-1/2 overflow-visible rounded-xl"+ }+ >{isScreenshot ? (<ScreenshotImage src={screenshotImageUrl} alt={data.name} />) : (