Skip to content

Commit

Permalink
Merge pull request #318 from FormidableLabs/issue/239-timeline-pane-i…
Browse files Browse the repository at this point in the history
…ndicators

Add pane titles to Timeline events, closes #239
  • Loading branch information
bkonkle authored Oct 6, 2020
2 parents 6436c5c + 6ed784b commit cacfa55
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/panel/pages/events/components/TimelinePane/TimelinePane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const EventSection: FC<{ event: DebugEvent }> = ({ event }) => {

return (
<PaneSection>
<Title>Event</Title>
<Heading>Event</Heading>
<p>{event.type}</p>
<Heading>Message</Heading>
Expand All @@ -85,6 +86,7 @@ const EventSection: FC<{ event: DebugEvent }> = ({ event }) => {
/** Info about the source operation for the given event. */
const SourceSection: FC<{ operation: Operation }> = ({ operation }) => (
<PaneSection>
<Title>Operation</Title>
<Heading>Key</Heading>
<p>{operation.key}</p>
<Heading>Operation type</Heading>
Expand Down Expand Up @@ -119,6 +121,14 @@ const Body = styled(Pane.Body)`
}
`;

const Title = styled.h2`
display: flex;
justify-content: flex-end;
width: 100%;
font-size: 12px;
font-weight: normal;
`;

const Heading = styled.h3`
color: #fff;
font-size: 13px;
Expand Down

0 comments on commit cacfa55

Please sign in to comment.