fix: css badge

This commit is contained in:
Jean-Baptiste Pasquier 2019-06-25 10:25:43 +02:00
parent a4b2e8d593
commit 2ce14a72eb
No known key found for this signature in database
GPG Key ID: F2702E6D22ED4D62
2 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,6 @@
sib-widget(name='hd-counter') sib-widget(name='hd-counter')
template template
sib-badge(data-src="${id}") sib-badge(data-src="${src}")
nav#main__menu nav#main__menu
sib-router#navbar-router(default-route='members') sib-router#navbar-router(default-route='members')
sib-route.menu(name='members') sib-route.menu(name='members')
@ -23,9 +23,11 @@ nav#main__menu
div.sub-menu.menu-notification div.sub-menu.menu-notification
sib-display( sib-display(
data-src=`${endpoints.projects}` data-src=`${endpoints.projects}`
data-fields='project' data-fields='project, badge'
set-project='customer.name, dash, name' set-project='customer.name, dash, name'
value-dash=' - ' value-dash=' - '
widget-badge='hd-counter'
action-badge='badge'
next='project' next='project'
) )
//- div.divider //- div.divider
@ -54,9 +56,10 @@ nav#main__menu
div.sub-menu.menu-notification div.sub-menu.menu-notification
sib-display( sib-display(
data-src=`${endpoints.users}` data-src=`${endpoints.users}`
data-fields='username, account.user' data-fields='username, badge'
widget-username='sib-display-div' widget-username='sib-display-div'
widget-account.user='hd-counter' widget-badge='hd-counter'
action-badge='badge'
next='messages' next='messages'
) )

View File

@ -107,6 +107,7 @@
div[name='project'] { div[name='project'] {
display: flex; display: flex;
flex: 3;
sib-display-value { sib-display-value {
display: block; display: block;