Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,17 @@ export const WaterfallSidebarItem = ({
data-test-subj={isHighlighted ? 'sideBarHighlightedItem' : 'sideBarDimmedItem'}
>
{!status || !isErrorStatusCode(status) ? (
<MiddleTruncatedText
text={text}
url={url}
ariaLabel={ariaLabel}
onClick={handleSidebarClick}
setButtonRef={setRef}
/>
<EuiFlexGroup>
<EuiFlexItem grow={false} style={{ minWidth: 0 }}>
<MiddleTruncatedText
text={text}
url={url}
ariaLabel={ariaLabel}
onClick={handleSidebarClick}
setButtonRef={setRef}
/>
</EuiFlexItem>
</EuiFlexGroup>
) : (
<EuiFlexGroup justifyContent="spaceBetween" alignItems="center">
<EuiFlexItem grow={false} style={{ minWidth: 0 }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
*/

// Pixel value
export const BAR_HEIGHT = 32;
export const BAR_HEIGHT = 24;
// Flex grow value
export const MAIN_GROW_SIZE = 8;
// Flex grow value
export const SIDEBAR_GROW_SIZE = 2;
// Axis height
// NOTE: This isn't a perfect solution - changes in font size etc within charts could change the ideal height here.
export const FIXED_AXIS_HEIGHT = 32;
export const FIXED_AXIS_HEIGHT = 24;

// number of items to display in canvas, since canvas can only have limited size
export const CANVAS_MAX_ITEMS = 150;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const LastChunk = styled.span`

const StyledButton = styled(EuiButtonEmpty)`
&&& {
height: auto;
border: none;

.euiButtonContent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ export const WaterfallChartSidebarFlexItem = euiStyled(EuiFlexItem)`
export const SideBarItemHighlighter = euiStyled(EuiFlexItem)<{ isHighlighted: boolean }>`
opacity: ${(props) => (props.isHighlighted ? 1 : 0.4)};
height: 100%;
.euiButtonEmpty {
height: ${FIXED_AXIS_HEIGHT}px;
font-size:${({ theme }) => theme.eui.euiFontSizeM};
}
`;

interface WaterfallChartChartContainer {
Expand All @@ -124,8 +128,8 @@ interface WaterfallChartChartContainer {

export const WaterfallChartChartContainer = euiStyled.div<WaterfallChartChartContainer>`
width: 100%;
height: ${(props) => `${props.height + FIXED_AXIS_HEIGHT - 4}px`};
margin-top: -${FIXED_AXIS_HEIGHT - 4}px;
height: ${(props) => `${props.height + FIXED_AXIS_HEIGHT + 4}px`};
margin-top: -${FIXED_AXIS_HEIGHT + 4}px;
z-index: ${(props) => Math.round(props.theme.eui.euiZLevel3 / (props.chartIndex + 1))};
`;

Expand Down