Skip to content

Commit

Permalink
[dagit] Add a gradient behind the Gantt chart step selector now
Browse files Browse the repository at this point in the history
  • Loading branch information
souterjk committed Mar 2, 2022
1 parent cbc48e8 commit c808d3b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions js_modules/dagit/packages/core/src/gantt/GanttChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ const GanttChartInner = (props: GanttChartInnerProps) => {
/>
)}
<div style={{overflow: 'scroll', flex: 1}} {...containerProps}>
<div style={{position: 'relative', marginBottom: 50, ...layoutSize}}>
<div style={{position: 'relative', marginBottom: 70, ...layoutSize}}>
{measurementComplete && (
<GanttChartViewportContents
options={options}
Expand Down Expand Up @@ -384,7 +384,7 @@ const GanttChartInner = (props: GanttChartInnerProps) => {
</Box>
</WebsocketWarning>
) : null}
<Box flex={{direction: 'row', alignItems: 'center', gap: 12}}>
<FilterInputsBackgroundBox flex={{direction: 'row', alignItems: 'center', gap: 12}}>
<GraphQueryInput
items={props.graph}
value={props.selection.query}
Expand All @@ -398,7 +398,7 @@ const GanttChartInner = (props: GanttChartInnerProps) => {
label="Hide unselected steps"
onChange={props.onChange}
/>
</Box>
</FilterInputsBackgroundBox>
</GraphQueryInputContainer>
</>
);
Expand Down Expand Up @@ -774,6 +774,11 @@ const GraphQueryInputContainer = styled.div`
white-space: nowrap;
`;

const FilterInputsBackgroundBox = styled(Box)`
background: radial-gradient(${ColorsWIP.Gray50} 0%, rgba(255, 255, 255, 0) 100%);
padding: 15px 15px 0px 15px;
`;

export const GanttChartLoadingState = ({runId}: {runId: string}) => (
<GanttChartContainer>
<OptionsContainer />
Expand Down

0 comments on commit c808d3b

Please sign in to comment.