Make the height of textarea as per container height but consider the text above it (#3189)
parent
70a31874f0
commit
ad35d3d567
|
@ -467,12 +467,14 @@ const tabs = [
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<small className="flex py-4 text-neutral-500">{t("place_where_cal_widget_appear")}</small>
|
<div>
|
||||||
|
<small className="flex py-4 text-neutral-500">{t("place_where_cal_widget_appear")}</small>
|
||||||
|
</div>
|
||||||
<TextArea
|
<TextArea
|
||||||
data-testid="embed-code"
|
data-testid="embed-code"
|
||||||
ref={ref as typeof ref & MutableRefObject<HTMLTextAreaElement>}
|
ref={ref as typeof ref & MutableRefObject<HTMLTextAreaElement>}
|
||||||
name="embed-code"
|
name="embed-code"
|
||||||
className="h-[36rem]"
|
className="h-[calc(100%-50px)]"
|
||||||
readOnly
|
readOnly
|
||||||
value={
|
value={
|
||||||
`<!-- Cal ${embedType} embed code begins -->\n` +
|
`<!-- Cal ${embedType} embed code begins -->\n` +
|
||||||
|
@ -519,7 +521,7 @@ ${getEmbedTypeSpecificString({ embedFramework: "HTML", embedType, calLink, previ
|
||||||
data-testid="embed-react"
|
data-testid="embed-react"
|
||||||
ref={ref as typeof ref & MutableRefObject<HTMLTextAreaElement>}
|
ref={ref as typeof ref & MutableRefObject<HTMLTextAreaElement>}
|
||||||
name="embed-react"
|
name="embed-react"
|
||||||
className="h-[36rem]"
|
className="h-[calc(100%-50px)]"
|
||||||
readOnly
|
readOnly
|
||||||
value={`/* First make sure that you have installed the package */
|
value={`/* First make sure that you have installed the package */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue