Skip to content

Commit 4122e4c

Browse files
committed
fix: window and padding
1 parent 98ea683 commit 4122e4c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

site/src/pages/TemplatePage/TemplateEmbedPage/TemplateEmbedPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ interface TemplateEmbedPageViewProps {
5252
templateParameters?: TemplateVersionParameter[];
5353
}
5454

55+
const deploymentUrl = `${window.location.protocol}//${window.location.host}`;
56+
5557
function getClipboardCopyContent(
5658
templateName: string,
5759
organization: string,
5860
buttonValues: ButtonValues | undefined,
5961
): string {
60-
const deploymentUrl = `${window.location.protocol}//${window.location.host}`;
6162
const createWorkspaceUrl = `${deploymentUrl}/templates/${organization}/${templateName}/workspace`;
6263
const createWorkspaceParams = new URLSearchParams(buttonValues);
6364
if (createWorkspaceParams.get("name") === "") {
@@ -162,7 +163,7 @@ export const TemplateEmbedPageView: FC<TemplateEmbedPageViewProps> = ({
162163
<Label className="text-md" htmlFor={defaultWorkspaceNameID}>
163164
Workspace name
164165
</Label>
165-
<div className={"text-sm text-content-secondary mb-3"}>
166+
<div className="text-sm text-content-secondary pb-3">
166167
Default name for the new workspace
167168
</div>
168169
<Input

0 commit comments

Comments
 (0)