From 062911f2778ca9c14f3f48eee76b6494ccac1f1a Mon Sep 17 00:00:00 2001 From: Wingysam Date: Fri, 23 Nov 2018 18:04:24 -0500 Subject: [PATCH] Fix long item names overflowing --- static/css/main.css | 4 ++++ views/wishlist.pug | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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