Skip to content
Snippets Groups Projects
Commit 04c9270e authored by Yannis Barlas's avatar Yannis Barlas
Browse files

Merge branch 'app-bar-flex' into 'master'

Fix alignment of nav bar items

See merge request xpub/xpub!60
parents dfb3622b 4f3ac0d9
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ const AppBar = ({ brandLink, brandName, loginLink, logoutLink, userName }) => ( ...@@ -13,7 +13,7 @@ const AppBar = ({ brandLink, brandName, loginLink, logoutLink, userName }) => (
{brandName} {brandName}
</Link> </Link>
<div> <div className={classes.actions}>
{userName && ( {userName && (
<span className={classes.item}> <span className={classes.item}>
<Icon size={16}>user</Icon> <Icon size={16}>user</Icon>
......
...@@ -30,6 +30,10 @@ ...@@ -30,6 +30,10 @@
padding: 0 1rem; padding: 0 1rem;
} }
.actions {
display: flex;
}
.username { .username {
margin-left: 0.3em; margin-left: 0.3em;
} }
......
...@@ -11,7 +11,9 @@ exports[`AppBar Snapshot 1`] = ` ...@@ -11,7 +11,9 @@ exports[`AppBar Snapshot 1`] = `
> >
some brand some brand
</a> </a>
<div> <div
className="actions"
>
<span <span
className="item" className="item"
> >
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment