Mirror of https://github.com/roostorg/osprey github.com/roostorg/osprey
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ui: fix event stream card empty/no features height (#42)

authored by

hailey and committed by
GitHub
5baecfbf 629beb3f

+5
+5
osprey_ui/src/components/event_stream/EventStream.tsx
··· 28 28 const HEADER_HEIGHT = 44; 29 29 const ADDITIONAL_PADDING = 4; 30 30 const ROW_HEIGHT = 44; 31 + const EMPTY_ROW_HEIGHT = 116; 31 32 const NUM_COLUMNS = 3; 32 33 33 34 const calculateCardHeight = (currentHeight: number, featureBlock: readonly string[], item: OspreyEvent) => { ··· 159 160 customSummaryFeatures == null 160 161 ? getSummaryFeatures(eventStream[index].extracted_features.ActionName) 161 162 : [customSummaryFeatures]; 163 + 164 + if (!features.length) { 165 + return EMPTY_ROW_HEIGHT; 166 + } 162 167 163 168 return features.reduce( 164 169 (height: number, featureBlock: readonly string[]) =>