Skip to content

Commit

Permalink
add small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
m0nggh committed May 21, 2024
1 parent b758948 commit 5433e42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function Suggestions(props: SuggestionsProps) {
textStyle="subhead-1"
color="base.content.medium"
>
Choose Data
Choose data
</Text>
<Divider borderColor="base.divider.medium" />
{data.map((option, index) => (
Expand Down Expand Up @@ -118,11 +118,15 @@ export const SuggestionsPopper = (props: SuggestionsPopperProps) => {

const offsetVerticalMargin = editorRef?.current?.offsetHeight ?? 0

if (!open) {
return null
}

return (
<Popover
isOpen={open}
isOpen
initialFocusRef={editorRef}
offset={[0, offsetVerticalMargin]}
offset={[0, offsetVerticalMargin + 1]} // this is adjusted based on DS input
>
<PopoverTrigger>
<div />
Expand Down
4 changes: 1 addition & 3 deletions packages/frontend/src/components/TestSubstep/TestResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ export default function TestResult(props: TestResultsProps): JSX.Element {
}
</Text>
</Infobox>
<Box maxH="25rem" overflowY="scroll" w="100%">
<VariablesList variables={stepsWithVariables[0].output} />
</Box>
<VariablesList variables={stepsWithVariables[0].output} />
</Box>
)
}

0 comments on commit 5433e42

Please sign in to comment.