diff options
author | Volpeon <git@volpeon.ink> | 2022-03-27 18:52:27 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-03-27 18:52:27 +0200 |
commit | a08dee14bcc07ee31175265cb586e857d44fb12e (patch) | |
tree | 4d1d4cfdb09d76d395d37b06983bd212eb44aeb6 /tpl/objects/bubble-group.pug | |
parent | Update (diff) | |
download | iro-design-a08dee14bcc07ee31175265cb586e857d44fb12e.tar.gz iro-design-a08dee14bcc07ee31175265cb586e857d44fb12e.tar.bz2 iro-design-a08dee14bcc07ee31175265cb586e857d44fb12e.zip |
Improved bubbles
Diffstat (limited to 'tpl/objects/bubble-group.pug')
-rw-r--r-- | tpl/objects/bubble-group.pug | 13 |
1 files changed, 3 insertions, 10 deletions
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 @@ | |||
1 | mixin bubble-group(user) | 1 | mixin bubble-group(user) |
2 | - | 2 | - |
3 | let first = true | ||
4 | |||
5 | mixin bubble-group-bubble(time) | ||
6 | +bubble(time, first ? user : undefined)(class='l-bubble-group__bubble') | ||
7 | block | ||
8 | - | ||
9 | first = false | ||
10 | |||
11 | - | ||
12 | let classes = { | 3 | let classes = { |
13 | 'l-bubble-group': true | 4 | 'l-bubble-group': true, |
5 | 'l-bubble-group--compact': attributes.compact, | ||
6 | 'l-bubble-group--arrow': attributes.arrow | ||
14 | } | 7 | } |
15 | if (attributes.class) { | 8 | if (attributes.class) { |
16 | classes[attributes.class] = true | 9 | classes[attributes.class] = true |