web: Break long stream names to fin in div
This commit is contained in:
parent
e322994842
commit
a2c4582a0c
3 changed files with 3 additions and 1 deletions
2
main.py
2
main.py
|
@ -90,7 +90,7 @@ class FleastServer(object):
|
||||||
s['thumbnail_url'].format(width=320, height=180),
|
s['thumbnail_url'].format(width=320, height=180),
|
||||||
self.to_html(s['title']),
|
self.to_html(s['title']),
|
||||||
s['user_name'],
|
s['user_name'],
|
||||||
s['viewer_count']) + '\n'
|
s['viewer_count'])
|
||||||
|
|
||||||
return self.templ_main.format(_stream_num_=len(data['streams']),
|
return self.templ_main.format(_stream_num_=len(data['streams']),
|
||||||
_game_name_=game,
|
_game_name_=game,
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
.strname {{
|
.strname {{
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
word-break: break-word;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
.struser {{
|
.struser {{
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
.strname {{
|
.strname {{
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
word-break: break-word;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
.struser {{
|
.struser {{
|
||||||
|
|
Loading…
Reference in a new issue