File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
x-pack/plugins/security_solution/public/timelines/components/timeline/body Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ interface OwnProps {
3838 onRuleChange ?: ( ) => void ;
3939}
4040
41+ const NUM_OF_ICON_IN_TIMELINE_ROW = 2 ;
42+
4143export const hasAdditionalActions = ( id : TimelineId ) : boolean =>
4244 [ TimelineId . detectionsPage , TimelineId . detectionsRulesDetailsPage , TimelineId . active ] . includes (
4345 id
@@ -128,8 +130,7 @@ export const BodyComponent = React.memo<StatefulBodyProps>(
128130 isEventViewer ,
129131 showCheckboxes ,
130132 hasAdditionalActions ( id as TimelineId )
131- ? // The extra one is for cases timeline action
132- DEFAULT_ICON_BUTTON_WIDTH * 2 + EXTRA_WIDTH
133+ ? DEFAULT_ICON_BUTTON_WIDTH * NUM_OF_ICON_IN_TIMELINE_ROW + EXTRA_WIDTH
133134 : 0
134135 ) ,
135136 [ isEventViewer , showCheckboxes , id ]
You can’t perform that action at this time.
0 commit comments