Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { Component, Input } from '@angular/core';
display: flex;
flex-direction: column;
border: 1px solid rgba(255, 255, 255, 0.12);
margin: 14px 0 24px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to keep the margin in some cases, otherwise the code is "too attached" to the text above it.

Image

Previously:

Image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard-coding margin makes the component inflexible. Maybe, it is better to add an input for margin styling. If you add just margin-top: 8px to the component, you'll likely have a situation where a double margin is created somewhere. You could place a class on the app-code-example component and use that to handle margins.

}

.header {
Expand All @@ -27,7 +26,7 @@ import { Component, Input } from '@angular/core';
}

.body {
padding: 0 0px;
padding: 0px 0px;
overflow-x: wrap;
}
`,
Expand Down