Skip to content

Commit 9d8737e

Browse files
authored
fix(frontend): fix test specs container and attribute tooltip (#3401)
1 parent e9114f2 commit 9d8737e

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

web/src/components/ResizablePanels/Splitter.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ const Splitter = ({
4949
<S.SplitterContainer id={id} key={id} className={className} onMouseDown={onMouseDown} onTouchStart={onTouchStart}>
5050
<S.ButtonContainer>
5151
{isToolTipVisible ? (
52-
<Tooltip title={tooltip} visible trigger={[]} placement={tooltipPlacement} overlayClassName="splitter">
52+
<Tooltip
53+
title={tooltip}
54+
visible
55+
trigger={[]}
56+
placement={tooltipPlacement}
57+
overlayClassName="splitter"
58+
getPopupContainer={node => node.parentElement ?? document.body}
59+
>
5360
{button}
5461
</Tooltip>
5562
) : (

web/src/components/RunDetailTest/RunDetailTest.styled.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ export const TabsContainer = styled.div`
4040
.ant-tabs-small > .ant-tabs-nav .ant-tabs-tab {
4141
padding: 0 0 8px;
4242
}
43+
44+
.ant-tabs,
45+
.ant-tabs .ant-tabs-content {
46+
height: 100%;
47+
}
4348
`;
4449

4550
export const CountBadge = styled(Badge)`

web/src/components/TestOutputForm/TestOutputForm.styled.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import styled from 'styled-components';
44

55
export const Container = styled.div`
66
background-color: ${({theme}) => theme.color.white};
7+
height: 100%;
8+
overflow-y: auto;
79
padding: 24px;
10+
position: relative;
811
`;
912

1013
export const Title = styled(Typography.Title).attrs({level: 2})`

web/src/components/TestSpecForm/TestSpecForm.styled.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ export const DeleteCheckIcon = styled(DeleteOutlined)`
5555

5656
export const AssertionForm = styled.div`
5757
background-color: ${({theme}) => theme.color.white};
58+
height: 100%;
59+
overflow-y: auto;
5860
padding: 24px;
61+
position: relative;
5962
`;
6063

6164
export const AssertionFormTitle = styled(Typography.Title).attrs({level: 2})``;

0 commit comments

Comments
 (0)