mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-25 03:16:53 +00:00
44 lines
948 B
TypeScript
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'};
|
|
`;
|