Skip to content

Commit cacfa55

Browse files
authored
Merge pull request #318 from FormidableLabs/issue/239-timeline-pane-indicators
Add pane titles to Timeline events, closes #239
2 parents 6436c5c + 6ed784b commit cacfa55

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed
535 Bytes
Loading
-465 Bytes
Loading
1.12 KB
Loading
1.12 KB
Loading

src/panel/pages/events/components/TimelinePane/TimelinePane.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const EventSection: FC<{ event: DebugEvent }> = ({ event }) => {
6060

6161
return (
6262
<PaneSection>
63+
<Title>Event</Title>
6364
<Heading>Event</Heading>
6465
<p>{event.type}</p>
6566
<Heading>Message</Heading>
@@ -85,6 +86,7 @@ const EventSection: FC<{ event: DebugEvent }> = ({ event }) => {
8586
/** Info about the source operation for the given event. */
8687
const SourceSection: FC<{ operation: Operation }> = ({ operation }) => (
8788
<PaneSection>
89+
<Title>Operation</Title>
8890
<Heading>Key</Heading>
8991
<p>{operation.key}</p>
9092
<Heading>Operation type</Heading>
@@ -119,6 +121,14 @@ const Body = styled(Pane.Body)`
119121
}
120122
`;
121123

124+
const Title = styled.h2`
125+
display: flex;
126+
justify-content: flex-end;
127+
width: 100%;
128+
font-size: 12px;
129+
font-weight: normal;
130+
`;
131+
122132
const Heading = styled.h3`
123133
color: #fff;
124134
font-size: 13px;

0 commit comments

Comments
 (0)