Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit 94143db

Browse files
committed
chore: add margin on version badge
1 parent 034d120 commit 94143db

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const Header: FC = () => (
88
<Navbar bg="light">
99
<Navbar.Brand>
1010
TypeScript ESLint Demo
11-
<Badge variant="secondary">v{pkgJson.version}</Badge>
11+
<Badge variant="secondary" className="version-badge">v{pkgJson.version}</Badge>
1212
</Navbar.Brand>
1313

1414
<Navbar.Collapse className="justify-content-end">

src/css/header.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@ header {
22
padding: 10px;
33
}
44

5-
header h2 {
6-
display: inline;
7-
margin: 0 0 10px;
8-
padding: 0;
5+
.version-badge {
6+
margin-left: 10px;
97
}
108
ul {
119
margin-bottom: 0;
1210
}
13-
1411
li {
1512
list-style: none;
1613
}

0 commit comments

Comments
 (0)