From a6b0d8432b737d974a22781b8a210f7c75977bde Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 18 Oct 2023 18:09:33 +0200 Subject: Improved bubble group customization --- tpl/objects/bubble-group.pug | 2 ++ tpl/objects/bubble.pug | 2 +- tpl/views/bubble-group.pug | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tpl') diff --git a/tpl/objects/bubble-group.pug b/tpl/objects/bubble-group.pug index e6a6d19..4fcb1a4 100644 --- a/tpl/objects/bubble-group.pug +++ b/tpl/objects/bubble-group.pug @@ -3,6 +3,8 @@ mixin bubble-group(user) let classes = { 'l-bubble-group': true, 'l-bubble-group--compact': attributes.compact, + 'l-bubble-group--left': attributes.left, + 'l-bubble-group--right': attributes.right, 'l-bubble-group--arrow': attributes.arrow } if (attributes.class) { diff --git a/tpl/objects/bubble.pug b/tpl/objects/bubble.pug index 5782ca5..6a3ea8b 100644 --- a/tpl/objects/bubble.pug +++ b/tpl/objects/bubble.pug @@ -35,7 +35,7 @@ mixin bubble(user) span.s-links.s-links--colored - slots.body() if slots.time - small.o-bubble__time + small.o-bubble__suffix - slots.time() if slots.footer footer.o-bubble__footer diff --git a/tpl/views/bubble-group.pug b/tpl/views/bubble-group.pug index 8464bc7..ce00067 100644 --- a/tpl/views/bubble-group.pug +++ b/tpl/views/bubble-group.pug @@ -1,7 +1,7 @@ mixin view-bubble-group +view('bubble-group', 'Bubble group') .c-box.l-overflow(style='resize: vertical') - +bubble-group('Volpeon')(compact=true arrow=true) + +bubble-group('Volpeon')(compact=true arrow=true left=true) +bubble('Volpeon')(compact=true class='l-bubble-group__bubble') +slot('body')= 'Compact bubbles test' +slot('time')= '12:34' -- cgit v1.2.3-70-g09d2