feat: embed: remove "Preview" tab and instead split code/preview layout 50/50 vertically (#15492)
* feat: embed: remove "Preview" tab and instead split code/preview layout 50/50 vertically * fix: use single preview tab * fix e2e * add border radius * final e2e fix * fix: don't show preview tab component --------- Co-authored-by: Keith Williams <[email protected]> Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
3 files changed
+119
-104
No files matched your search
@@ -36,7 +36,7 @@ export const tabs = [
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<small className="text-subtle flex py-4">
|
||||
<small className="text-subtle flex py-2">
|
||||
{t("place_where_cal_widget_appear", { appName: APP_NAME })}
|
||||
</small>
|
||||
</div>
|
||||
@@ -91,7 +91,7 @@ export const tabs = [
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<small className="text-subtle flex py-4">{t("create_update_react_component")}</small>
|
||||
<small className="text-subtle flex py-2">{t("create_update_react_component")}</small>
|
||||
<TextArea
|
||||
data-testid="embed-react"
|
||||
ref={ref as typeof ref & MutableRefObject<HTMLTextAreaElement>}
|
||||
@@ -100,10 +100,10 @@ export const tabs = [
|
||||
readOnly
|
||||
style={{ resize: "none", overflow: "auto" }}
|
||||
value={`/* First make sure that you have installed the package */
|
||||
|
||||
|
||||
/* If you are using yarn */
|
||||
// yarn add @calcom/embed-react
|
||||
|
||||
|
||||
/* If you are using npm */
|
||||
// npm install @calcom/embed-react
|
||||
${getEmbedTypeSpecificString({
|
||||
@@ -141,7 +141,7 @@ export const tabs = [
|
||||
<iframe
|
||||
ref={ref as typeof ref & MutableRefObject<HTMLIFrameElement>}
|
||||
data-testid="embed-preview"
|
||||
className="h-[100vh] border"
|
||||
className="rounded-md border"
|
||||
width="100%"
|
||||
height="100%"
|
||||
src={iframeSrc}
|
||||
|
||||
Reference in new issue
Block a user