diff --git a/app/client/src/IDE/Structure/Toolbar.tsx b/app/client/src/IDE/Structure/Toolbar.tsx index bd2f4f0ce7aa..ad727adec36d 100644 --- a/app/client/src/IDE/Structure/Toolbar.tsx +++ b/app/client/src/IDE/Structure/Toolbar.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import React, { useEffect } from "react"; import { Flex } from "@appsmith/ads"; interface ToolbarProps { @@ -6,14 +6,44 @@ interface ToolbarProps { } const Toolbar = (props: ToolbarProps) => { + useEffect(function detectScrollbar() { + const ele = document.getElementById("uqi-editor-form-content"); + const toolbar = document.getElementById("action-toolbar"); + + const handleScroll = function () { + if (ele && ele.scrollTop > 0) { + toolbar?.style.setProperty( + "box-shadow", + "0 4px 6px rgba(0, 0, 0, 0.1)", + ); + } else { + toolbar?.style.setProperty("box-shadow", "none"); + } + }; + + if (ele) { + ele.addEventListener("scroll", handleScroll); + } + + return function cleanup() { + ele?.removeEventListener("scroll", handleScroll); + }; + }, []); + return ( {props.children} diff --git a/app/client/src/PluginActionEditor/components/PluginActionForm/PluginActionForm.tsx b/app/client/src/PluginActionEditor/components/PluginActionForm/PluginActionForm.tsx index e5be9eb367ec..a50b3d0d4dcf 100644 --- a/app/client/src/PluginActionEditor/components/PluginActionForm/PluginActionForm.tsx +++ b/app/client/src/PluginActionEditor/components/PluginActionForm/PluginActionForm.tsx @@ -12,7 +12,7 @@ const PluginActionForm = () => { const { plugin } = usePluginActionContext(); return ( - + {plugin.uiComponent === UIComponentTypes.ApiEditorForm && ( )} diff --git a/app/client/src/PluginActionEditor/components/PluginActionForm/components/ActionForm/Zone/styles.module.css b/app/client/src/PluginActionEditor/components/PluginActionForm/components/ActionForm/Zone/styles.module.css index 0af35a6d69c7..aa1be4dafcc3 100644 --- a/app/client/src/PluginActionEditor/components/PluginActionForm/components/ActionForm/Zone/styles.module.css +++ b/app/client/src/PluginActionEditor/components/PluginActionForm/components/ActionForm/Zone/styles.module.css @@ -67,5 +67,11 @@ & :global(.ads-v2-select > .rc-select-selector) { min-width: unset; } + + /* Remove this once the config in DB is updated to use Section and Zone (Twilio, Airtable) */ + & :global(.ar-form-info-text) { + max-width: unset; + } + /* Removable section ends here */ } diff --git a/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/UQIEditorForm.tsx b/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/UQIEditorForm.tsx index 44750c91be8a..1e7537d79b2d 100644 --- a/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/UQIEditorForm.tsx +++ b/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/UQIEditorForm.tsx @@ -22,7 +22,13 @@ const UQIEditorForm = () => { const { data, evaluationState } = useFormData(); return ( - + ` ? "5px" : "0px"}; line-height: 16px; + max-width: 270px; + overflow: hidden; + break-word: break-all; `; const FormSubtitleText = styled.span<{ config?: ControlProps }>` @@ -177,7 +180,9 @@ function FormLabel(props: FormLabelProps) { //Wrapper on styled function FormInfoText(props: FormLabelProps) { return ( - {props.children} + + {props.children} + ); }