aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-03-04 15:48:16 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-03-04 15:48:16 -0800
commit5a3953609ca24bfd1e2029e8d125b5a3990c7ed0 (patch)
tree7f2e762dfd03ab41a828c07d852396a0e23f201f /python
parentbfc496de58cf0317574252c621d6b8e680df2ffc (diff)
downloadfatcat-5a3953609ca24bfd1e2029e8d125b5a3990c7ed0.tar.gz
fatcat-5a3953609ca24bfd1e2029e8d125b5a3990c7ed0.zip
fix very wide container URLs
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/templates/container_view.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html
index 677a295e..0eb11d36 100644
--- a/python/fatcat_web/templates/container_view.html
+++ b/python/fatcat_web/templates/container_view.html
@@ -16,10 +16,12 @@
<div class="one wide column"></div>
<div class="ten wide column" style="font-size: 16px;">
-<p>
{% if (container.extra != None) and (container.extra['urls'] != None) and (container.extra['urls']|length > 0) %}
- <a href="{{ container.extra['urls'][0] }}"><code>{{ container.extra['urls'][0] }}</code></a><br>
+ <div style="text-overflow: ellipsis; overflow: hidden; width: 100%;">
+ <a href="{{ container.extra['urls'][0] }}"><code>{{ container.extra['urls'][0] }}</code></a>
+ </div>
{% endif %}
+<p>
{% if container.publisher != None %}
Published by {{ container.publisher }}
{% endif %}