Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Refactor ShareHeader buttons and add page padding
Richie McIlroyf57fab8cb4f2
diff --git a/apps/web/app/s/[videoId]/_components/ShareHeader.tsx b/apps/web/app/s/[videoId]/_components/ShareHeader.tsxindex 442b8d945..fee6a73c4 100644--- a/apps/web/app/s/[videoId]/_components/ShareHeader.tsx+++ b/apps/web/app/s/[videoId]/_components/ShareHeader.tsx@@ -379,31 +379,33 @@ export const ShareHeader = ({return (<div className="group relative inline-flex shrink-0 items-center">{canManageSharePageBranding && (- <div className="pointer-events-none absolute left-0 top-full z-10 mt-1 flex items-center gap-1 rounded-full border border-gray-5 bg-white p-1 opacity-0 shadow-sm transition-opacity group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100">- <Button- variant="gray"- size="xs"- aria-label="Edit shareable link branding"- className="h-7 gap-1 whitespace-nowrap rounded-full px-2 text-[11px]"- disabled={isOpeningBrandingSettings}- onClick={handleEditBranding}- >- <Pencil className="size-3.5 text-gray-12" />- Change logo- </Button>- {branding.type === "cap" && (+ <div className="pointer-events-none absolute left-0 top-full z-10 pt-1 opacity-0 transition-opacity group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100">+ <div className="flex items-center gap-1 rounded-full border border-gray-5 bg-white p-1 shadow-sm"><Buttonvariant="gray"size="xs"- aria-label="Hide Cap logo"+ aria-label="Edit shareable link branding"className="h-7 gap-1 whitespace-nowrap rounded-full px-2 text-[11px]"- disabled={isHidingBranding}- onClick={handleHideBranding}+ disabled={isOpeningBrandingSettings}+ onClick={handleEditBranding}>- <X className="size-3.5 text-gray-12" />- Remove+ <Pencil className="size-3.5 text-gray-12" />+ Change logo</Button>- )}+ {branding.type === "cap" && (+ <Button+ variant="gray"+ size="xs"+ aria-label="Hide Cap logo"+ className="h-7 gap-1 whitespace-nowrap rounded-full px-2 text-[11px]"+ disabled={isHidingBranding}+ onClick={handleHideBranding}+ >+ <X className="size-3.5 text-gray-12" />+ Remove+ </Button>+ )}+ </div></div>)}{branding.type === "custom" ? (diff --git a/apps/web/app/s/[videoId]/page.tsx b/apps/web/app/s/[videoId]/page.tsxindex 5c4dabe20..aa1627ba8 100644--- a/apps/web/app/s/[videoId]/page.tsx+++ b/apps/web/app/s/[videoId]/page.tsx@@ -868,7 +868,7 @@ async function AuthorizedContent({}return (- <div className="container flex-1 px-4 mx-auto">+ <div className="container flex-1 px-4 pb-8 mx-auto"><ShareHeaderdata={{...videoWithOrganizationInfo,