Skip to content

Commit

Permalink
add snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
andreadelrio committed Mar 26, 2020
1 parent 9e2a095 commit f49eb15
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src-docs/src/views/comment/comment_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import Comment from './comment';
const commentSource = require('!!raw-loader!./comment');
const commentHtml = renderToHtml(Comment);

const commentSnippet = `<EuiComment username="janed">
{body}
</EuiComment>`;

export const CommentExample = {
title: 'Comment',
sections: [
Expand Down Expand Up @@ -48,6 +52,7 @@ export const CommentExample = {
</div>
),
props: { EuiComment },
snippet: commentSnippet,
demo: <Comment />,
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/components/comment/_comment.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.euiComment {
font-size: $euiFontSizeS;
display: flex;
margin: -($euiSize * .5);
margin: -($euiSizeS);
padding-bottom: $euiSize;
min-height: $euiSize * 5;

Expand All @@ -27,7 +27,7 @@
.euiCommentTimeline,
.euiCommentEvent {
flex-basis: auto;
margin: $euiSize * .5;
margin: $euiSizeS;
}

}
Expand Down
4 changes: 4 additions & 0 deletions src/components/comment/_comment_event.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
>div {
margin: $euiSizeXS;
}

.euiCommentEvent__headerTimestamp {
padding-top: $euiSizeXS * .5;
}
}

align-items: center;
Expand Down

0 comments on commit f49eb15

Please sign in to comment.