From a08dee14bcc07ee31175265cb586e857d44fb12e Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 27 Mar 2022 18:52:27 +0200 Subject: Improved bubbles --- tpl/objects/bubble-group.pug | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'tpl/objects/bubble-group.pug') diff --git a/tpl/objects/bubble-group.pug b/tpl/objects/bubble-group.pug index c2e502a..2b960f0 100644 --- a/tpl/objects/bubble-group.pug +++ b/tpl/objects/bubble-group.pug @@ -1,16 +1,9 @@ mixin bubble-group(user) - - - let first = true - - mixin bubble-group-bubble(time) - +bubble(time, first ? user : undefined)(class='l-bubble-group__bubble') - block - - - first = false - - let classes = { - 'l-bubble-group': true + 'l-bubble-group': true, + 'l-bubble-group--compact': attributes.compact, + 'l-bubble-group--arrow': attributes.arrow } if (attributes.class) { classes[attributes.class] = true -- cgit v1.2.3-70-g09d2