changeset 6830:387b8d551003

style: rely on css to truncate author name in tables instead of truncating to fixed length Dynamic truncation allows us in the future to use different length on different screen sizes.
author domruf <dominikruf@gmail.com>
date Sun, 02 Jul 2017 21:14:37 +0200
parents 322ce5147fe0
children 54ce462a0824
files kallithea/public/css/style.css kallithea/templates/changelog/changelog.html kallithea/templates/changeset/changeset_range.html kallithea/templates/compare/compare_cs.html
diffstat 4 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/css/style.css	Wed Aug 23 03:26:58 2017 +0200
+++ b/kallithea/public/css/style.css	Sun Jul 02 21:14:37 2017 +0200
@@ -1282,6 +1282,13 @@
     text-decoration: none;
 }
 
+td.author {
+    overflow: hidden;
+    text-overflow: ellipsis;
+    white-space: nowrap;
+    max-width: 210px;
+}
+
 .cs_files .progress {
     margin-bottom: 0;
 }
@@ -1440,9 +1447,6 @@
 }
 
 #graph_content #changesets td {
-    overflow: hidden;
-    text-overflow: ellipsis;
-    white-space: nowrap;
     height: 31px;
     border-color: #cdcdcd;
     text-align: left;
@@ -1458,10 +1462,6 @@
     font-size: 0.85em;
 }
 
-#graph_content tr .author {
-   width: 105px;
-}
-
 #graph_content tr .hash {
     width: 100px;
     font-size: 0.85em;
--- a/kallithea/templates/changelog/changelog.html	Wed Aug 23 03:26:58 2017 +0200
+++ b/kallithea/templates/changelog/changelog.html	Sun Jul 02 21:14:37 2017 +0200
@@ -96,7 +96,7 @@
                         </td>
                         <td class="author">
                             ${h.gravatar(h.email_or_none(cs.author), size=16)}
-                            <span data-toggle="tooltip" title="${cs.author}" class="user">${h.shorter(h.person(cs.author),22)}</span>
+                            <span data-toggle="tooltip" title="${cs.author}" class="user">${h.person(cs.author)}</span>
                         </td>
                         <td class="hash">
                             ${h.link_to(h.show_id(cs),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id), class_='changeset_hash')}
--- a/kallithea/templates/changeset/changeset_range.html	Wed Aug 23 03:26:58 2017 +0200
+++ b/kallithea/templates/changeset/changeset_range.html	Sun Jul 02 21:14:37 2017 +0200
@@ -36,7 +36,7 @@
                     <td>${h.gravatar_div(h.email_or_none(cs.author), size=14)}</td>
                     %endif
                     <td>${h.link_to(h.short_id(cs.raw_id),h.url('changeset_home',repo_name=c.cs_repo.repo_name,revision=cs.raw_id))}</td>
-                    <td><div class="author">${h.person(cs.author)}</div></td>
+                    <td class="author">${h.person(cs.author)}</td>
                     <td><span data-toggle="tooltip" title="${h.age(cs.date)}">${cs.date}</span></td>
                     <td>
                       %if c.statuses:
--- a/kallithea/templates/compare/compare_cs.html	Wed Aug 23 03:26:58 2017 +0200
+++ b/kallithea/templates/compare/compare_cs.html	Sun Jul 02 21:14:37 2017 +0200
@@ -65,7 +65,7 @@
         <td><span data-toggle="tooltip" title="${h.age(cs.date)}">${cs.date}</span></td>
         <td class="author">
             ${h.gravatar(h.email_or_none(cs.author), size=16)}
-            <span data-toggle="tooltip" title="${cs.author}" class="user">${h.shorter(h.person(cs.author),22)}</span>
+            <span data-toggle="tooltip" title="${cs.author}" class="user">${h.person(cs.author)}</span>
         </td>
         <td>${h.link_to(h.show_id(cs),h.url('changeset_home',repo_name=c.cs_repo.repo_name,revision=cs.raw_id), class_='changeset_hash')}</td>
         <td>