mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-25 19:40:24 +00:00
* refactor: initial setup * refactor: created panelWrapper to separate panel data * fix: type error * fix: the dimension issue for graphs * refactor: done with table value uplot panels * refactor: done with logs panel component * refactor: updated props for log panel component * fix: query range duplicate issue for logs * refactor: trace list view done * fix: full view support * refactor: done with edit mode for panels * refactor: type and props * refactor: reduce an extra api call on edit for list view * refactor: done with full graph visibility handler * refactor: removed commented code * refactor: removed commented code * fix: build failure * refactor: updated service layer graphs * refactor: updated top level oparation query key * refactor: added drag select * refactor: done with drag select in chart * refactor: code cleanup * refactor: legend should not need stage and run query
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import { PANEL_TYPES } from 'constants/queryBuilder';
|
|
import { themeColors } from 'constants/theme';
|
|
import styled, { css, FlattenSimpleInterpolation } from 'styled-components';
|
|
|
|
import { GraphContainerProps } from './types';
|
|
|
|
interface Props {
|
|
$panelType: PANEL_TYPES;
|
|
}
|
|
|
|
export const NotFoundContainer = styled.div`
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 55vh;
|
|
`;
|
|
|
|
export const TimeContainer = styled.div<Props>`
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
${({ $panelType }): FlattenSimpleInterpolation =>
|
|
$panelType === PANEL_TYPES.TABLE
|
|
? css`
|
|
margin-bottom: 1rem;
|
|
`
|
|
: css``}
|
|
`;
|
|
|
|
export const GraphContainer = styled.div<GraphContainerProps>`
|
|
height: ${({ isGraphLegendToggleAvailable }): string =>
|
|
isGraphLegendToggleAvailable ? '50%' : '100%'};
|
|
`;
|
|
|
|
export const LabelContainer = styled.button<{
|
|
isDarkMode?: boolean;
|
|
disabled?: boolean;
|
|
}>`
|
|
max-width: 18.75rem;
|
|
cursor: ${(props): string => (props.disabled ? 'no-drop' : 'pointer')};
|
|
border: none;
|
|
background-color: transparent;
|
|
color: ${(props): string =>
|
|
props.isDarkMode ? themeColors.white : themeColors.black};
|
|
`;
|