From 79f0d3c993667d5aca6c8ef17ff3a7c6632c13a1 Mon Sep 17 00:00:00 2001 From: Wingy Date: Tue, 3 Dec 2019 17:15:26 -0500 Subject: [PATCH] make print better --- views/wishlist.pug | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/views/wishlist.pug b/views/wishlist.pug index 2ed04c9..bb30abf 100644 --- a/views/wishlist.pug +++ b/views/wishlist.pug @@ -182,17 +182,15 @@ block content block print h1 #{req.params.user}'s Wishlist - each item, index in wishlist.filter(item => item.addedBy === req.params.user) - .print-gift - if index > 0 - hr(style='background-color: black;') - .columns - .column.is-4 - span.is-block.is-size-4.ugc= item.name - span.is-block.is-size-5.ugc.has-text-grey= item.url - .column - span.is-block.is-size-5 Added by: #{item.addedBy} - if item.note - br - .box - span.is-block.is-size-5.ugc= item.note + .print-gifts + each item, index in wishlist.filter(item => item.addedBy === req.params.user) + .print-gift(style='page-break-inside: avoid;') + hr(style='margin-top: .5em; margin-bottom: .5em; background-color: black;') + span.is-size-5.ugc= item.name + span= ' ' + span.is-size-6.ugc.has-text-grey= item.url + span.is-block.is-size-6 Added by: #{item.addedBy} + if item.note + br + .box + span.is-block.is-size-5.ugc= item.note \ No newline at end of file