diff --git a/static/css/main.css b/static/css/main.css index f24aae5..c8ad7ba 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -18,6 +18,10 @@ margin-left: 0 !important; } +.overflowWrap { + overflow-wrap: break-word; +} + ul.noStyle li { list-style-type: none; } \ No newline at end of file diff --git a/views/wishlist.pug b/views/wishlist.pug index 305cf55..0dc11dd 100644 --- a/views/wishlist.pug +++ b/views/wishlist.pug @@ -4,7 +4,7 @@ block content each item, index in wishlist if req.user._id === item.addedBy || req.params.user !== req.user._id .box - span + span.overflowWrap if item.url a(href=item.url, rel='noopener noreferrer', target='_blank')= (item.name ? item.name : item.url) else