From a2c4582a0c4a5977c998a89011cb1b0f7c0518db Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Sun, 6 Feb 2022 14:31:05 +0300 Subject: [PATCH] web: Break long stream names to fin in div --- main.py | 2 +- web/fl.html | 1 + web/fl_template_main.html | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 07a12a7..bee436d 100755 --- a/main.py +++ b/main.py @@ -90,7 +90,7 @@ class FleastServer(object): s['thumbnail_url'].format(width=320, height=180), self.to_html(s['title']), s['user_name'], - s['viewer_count']) + '\n' + s['viewer_count']) return self.templ_main.format(_stream_num_=len(data['streams']), _game_name_=game, diff --git a/web/fl.html b/web/fl.html index 0f1026b..2a93ab7 100644 --- a/web/fl.html +++ b/web/fl.html @@ -22,6 +22,7 @@ .strname {{ font-weight: bold; + word-break: break-word; }} .struser {{ diff --git a/web/fl_template_main.html b/web/fl_template_main.html index a72eb86..d205725 100644 --- a/web/fl_template_main.html +++ b/web/fl_template_main.html @@ -22,6 +22,7 @@ .strname {{ font-weight: bold; + word-break: break-word; }} .struser {{