File tree Expand file tree Collapse file tree
src/Shared/Components/FloatingVariablesSuggestions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ const FloatingVariablesSuggestions = ({
4444 hideObjectVariables = true ,
4545 showValueOnHover = true ,
4646 isTemplateView,
47+ boundaryGap,
4748} : FloatingVariablesSuggestionsProps ) => {
4849 const [ isActive , setIsActive ] = useState < boolean > ( false )
4950
@@ -62,8 +63,6 @@ const FloatingVariablesSuggestions = ({
6263 setIsActive ( false )
6364 } , [ ] )
6465
65- const boundaryGap = { x : 32 , y : 90 }
66-
6766 return (
6867 < >
6968 < div className = { `${ isActive ? 'dc__visibility-hidden dc__disable-click' : '' } ` } >
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- export const SUGGESTIONS_SIZE = {
18- width : 356 ,
19- height : 504 ,
20- }
21-
2217export const NO_DEFINED_DESCRIPTION = 'No Defined Description'
2318export const NO_DEFINED_VALUE = 'No Defined Value'
2419export const SUGGESTIONS_INFO_TITLE = 'What is scoped variable?'
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17+ import { DraggableWrapperProps } from '@Common/DraggableWrapper'
1718import { AppConfigProps } from '@Pages/index'
1819
1920export interface ScopedVariableType {
@@ -25,7 +26,9 @@ export interface ScopedVariableType {
2526 isRedacted : boolean
2627}
2728
28- export interface FloatingVariablesSuggestionsProps extends Required < Pick < AppConfigProps , 'isTemplateView' > > {
29+ export interface FloatingVariablesSuggestionsProps
30+ extends Required < Pick < AppConfigProps , 'isTemplateView' > > ,
31+ Pick < DraggableWrapperProps , 'boundaryGap' > {
2932 zIndex : number
3033 appId ?: string
3134 envId ?: string
You can’t perform that action at this time.
0 commit comments