Minor bulma.navbar improvement.

master
Luka Vandervelden 2020-04-26 20:58:20 +02:00
parent 53c89d5262
commit aae6ec0da1
2 changed files with 2 additions and 6 deletions

View File

@ -89,9 +89,7 @@
var start, end; var start, end;
return [args.brand ? h('div.navbar-brand', args.brand) : void 8, args.start || args.end ? h('div.navbar-menu', [(start = args.start) ? h('div.navbar-start', start) : void 8, (end = args.end) ? h('div.navbar-end', end) : void 8]) : void 8]; return [args.brand ? h('div.navbar-brand', args.brand) : void 8, args.start || args.end ? h('div.navbar-menu', [(start = args.start) ? h('div.navbar-start', start) : void 8, (end = args.end) ? h('div.navbar-end', end) : void 8]) : void 8];
}; };
return h('nav.navbar', { return h('nav.navbar', JSON.parse(JSON.stringify(args)), [useContainer
classes: classes
}, [useContainer
? h('div.container', innerNavbar()) ? h('div.container', innerNavbar())
: innerNavbar()]); : innerNavbar()]);
}, },

View File

@ -108,9 +108,7 @@ module.exports = {
] ]
] ]
h \nav.navbar { h \nav.navbar (JSON.parse JSON.stringify args), [
classes: classes
} [
if use-container if use-container
h \div.container inner-navbar! h \div.container inner-navbar!
else else