Alex Aragón 6 years ago
parent
commit
057f2b42f9

+ 15 - 1
app/Resources/public/css/base.css

@@ -2823,7 +2823,21 @@ form .formw .freeze {
     text-align: left;
     vertical-align: middle;
 }
-
+.email-overflow{
+    width:200px;
+    height:20px;
+    padding:20px;
+    border:1px solid blue;
+    text-overflow:ellipsis;
+    white-space:nowrap;
+    overflow:hidden;
+}
+.email-overflow:hover {
+    width: auto;
+    white-space: initial;
+    overflow:visible;
+    cursor: pointer;
+}
 .show_element {
     display: block !important;
 }

+ 1 - 1
app/Resources/public/css/themes/rainbow/editor_content.css

@@ -2,7 +2,7 @@
 Stylesheet for HTML blocks created with CKEditor to embed in Chamilo pages.
 */
 body{
-    padding: 1em;
+    padding: 0;
     font-family: 'Open Sans', sans-serif;
 }
 /* Hack for show Bootstrap alerts in CKEditor' style select */

+ 2 - 2
main/template/default/social/user_block.tpl

@@ -85,13 +85,13 @@
                         <li class="item item-name">
                             <h5>{{ user.firstname }} {{ user.lastname }}</h5>
                         </li>
-
                         {% if show_full_profile %}
+
                             {% if user.email %}
                             <li class="item">
                                 <a href="{{ _p.web }}main/messages/new_message.php">
                                 <img src="{{ "instant_message.png" | icon }}" alt="{{ "Email" | get_lang }}">
-                                {{ user.email }}
+                                    <div class="email-overflow">{{ user.email }}</div>
                                 </a>
                             </li>
                             {% endif %}