Skip to content

Commit

Permalink
fix: account for scrollbar width
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-golovanov committed Nov 14, 2024
1 parent 2ecd266 commit c741a2f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,9 @@ export const QueryResponseTab = (props: Props) => {
data={output}
responseType={currentContentType}
tableBodyHeight={
responseTabHeight + RESPONSE_TABLE_HEIGHT_OFFSET
responseTabHeight +
RESPONSE_TABLE_HEIGHT_OFFSET -
scrollbarOffset
}
/>
</Styled.Response>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const DataContainer = styled.div<{ $height: number }>`

export const Response = styled.div`
overflow: auto;
width: 100%;
height: 100%;
`;

export const StatusBar = styled.div`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const TableWrapper = styled.div<{ minColumnWidth?: number }>`
display: flex;
justify-content: space-between;
flex-direction: column;
overflow: scroll;
overflow: auto;
.tableWrap {
height: 100%;
display: block;
Expand Down

0 comments on commit c741a2f

Please sign in to comment.