From 4010ce9cbf033a144dd8b93d5e73063015f80ac9 Mon Sep 17 00:00:00 2001 From: Pierre Date: Wed, 7 Mar 2018 19:31:29 +0100 Subject: [PATCH] Friends list correctly shown --- assets/css/components/friends/listModal.css | 33 ++++++++++++++++++++- assets/js/components/friends/listModal.js | 2 +- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/assets/css/components/friends/listModal.css b/assets/css/components/friends/listModal.css index b68338a0..cf6ee2b3 100644 --- a/assets/css/components/friends/listModal.css +++ b/assets/css/components/friends/listModal.css @@ -2,4 +2,35 @@ * Friends list modal stylesheet * * @author Pierre HUBERT - */ \ No newline at end of file + */ + +.friends-list-ro .friend { + display: inline-block; + width: 170px; + max-width: 100%; + margin: 5px; +} + +.friends-list-ro .friend a { + color: white; +} + +.friends-list-ro .friend a:hover { + color: #001F3F; +} + +.friends-list-ro .friend img { + margin: auto 10px auto auto; + max-width: 40px; + height: 40px; + border-radius: 50%; + visibility: visible; +} + +.friends-list-ro .friend .friends-name { + display: inline-block; + white-space: normal; + max-width: 100px; + text-align: left; + vertical-align: middle; +} \ No newline at end of file diff --git a/assets/js/components/friends/listModal.js b/assets/js/components/friends/listModal.js index 7e21ec12..3316bb1f 100644 --- a/assets/js/components/friends/listModal.js +++ b/assets/js/components/friends/listModal.js @@ -198,7 +198,7 @@ ComunicWeb.components.friends.listModal = { //Add users name createElem2({ appendTo: userLink, - type: "span", + type: "div", class: "friends-name", innerHTML: userFullName(users["user-" + id]) });