Skip to content

Commit e553f4d

Browse files
committed
[Security Solution] styling for notes' panel (#74274)
* styling for notes' pannel * styling * remove additional const * styling
1 parent 56a3ef4 commit e553f4d

2 files changed

Lines changed: 5 additions & 19 deletions

File tree

x-pack/plugins/security_solution/public/timelines/components/notes/index.tsx

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
EuiInMemoryTableProps,
1010
EuiModalBody,
1111
EuiModalHeader,
12-
EuiPanel,
1312
EuiSpacer,
1413
} from '@elastic/eui';
1514
import React, { useState } from 'react';
@@ -20,7 +19,6 @@ import { Note } from '../../../common/lib/note';
2019
import { AddNote } from './add_note';
2120
import { columns } from './columns';
2221
import { AssociateNote, GetNewNoteId, NotesCount, search, UpdateNote } from './helpers';
23-
import { NOTES_PANEL_WIDTH, NOTES_PANEL_HEIGHT } from '../timeline/properties/notes_size';
2422
import { TimelineStatusLiteral, TimelineStatus } from '../../../../common/types/timeline';
2523

2624
interface Props {
@@ -32,23 +30,12 @@ interface Props {
3230
updateNote: UpdateNote;
3331
}
3432

35-
const NotesPanel = styled(EuiPanel)`
36-
height: ${NOTES_PANEL_HEIGHT}px;
37-
width: ${NOTES_PANEL_WIDTH}px;
38-
39-
& thead {
40-
display: none;
41-
}
42-
`;
43-
44-
NotesPanel.displayName = 'NotesPanel';
45-
4633
const InMemoryTable: typeof EuiInMemoryTable & { displayName: string } = styled(
4734
EuiInMemoryTable as React.ComponentType<EuiInMemoryTableProps<Note>>
4835
)`
49-
overflow-x: hidden;
50-
overflow-y: auto;
51-
height: 220px;
36+
& thead {
37+
display: none;
38+
}
5239
` as any; // eslint-disable-line @typescript-eslint/no-explicit-any
5340

5441
InMemoryTable.displayName = 'InMemoryTable';
@@ -60,7 +47,7 @@ export const Notes = React.memo<Props>(
6047
const isImmutable = status === TimelineStatus.immutable;
6148

6249
return (
63-
<NotesPanel>
50+
<>
6451
<EuiModalHeader>
6552
<NotesCount noteIds={noteIds} />
6653
</EuiModalHeader>
@@ -84,7 +71,7 @@ export const Notes = React.memo<Props>(
8471
sorting={true}
8572
/>
8673
</EuiModalBody>
87-
</NotesPanel>
74+
</>
8875
);
8976
}
9077
);

x-pack/plugins/security_solution/public/timelines/components/timeline/properties/notes_size.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
*/
66

77
export const NOTES_PANEL_WIDTH = 1024;
8-
export const NOTES_PANEL_HEIGHT = 750;

0 commit comments

Comments
 (0)