Rajat Dabade 8ee92516ca
[Refactor]: updated css for height of Panel in LeftContainer (#4030)
* refactor: updated css

* refactor: updated the css

* refactor: removed overflow hidden
2023-12-29 15:52:35 +05:30

44 lines
948 B
TypeScript

import { Card, Tooltip } from 'antd';
import { PANEL_TYPES } from 'constants/queryBuilder';
import styled from 'styled-components';
interface Props {
$panelType: PANEL_TYPES;
}
export const Container = styled(Card)<Props>`
&&& {
position: relative;
}
.ant-card-body {
padding: ${({ $panelType }): string =>
$panelType === PANEL_TYPES.TABLE ? '0 0' : '1.5rem 0'};
height: 57vh;
display: flex;
flex-direction: column;
}
`;
export const AlertIconContainer = styled(Tooltip)`
position: absolute;
top: 10px;
left: 10px;
`;
export const NotFoundContainer = styled.div`
display: flex;
justify-content: center;
align-items: center;
min-height: 47vh;
`;
export const PlotTagWrapperStyled = styled.div<Props>`
margin-left: 2rem;
margin-top: ${({ $panelType }): string =>
$panelType === PANEL_TYPES.TABLE ? '1rem' : '0'};
margin-bottom: ${({ $panelType }): string =>
$panelType === PANEL_TYPES.TABLE ? '1rem' : '0'};
`;