summaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-09-05 17:37:50 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-09-05 20:59:02 +0200
commit2e424d84a4fadbd8ae075167ec5ae532d4deb56f (patch)
tree1442f36f445cd4f87cfaa252a21e082fa5accf05 /apps/comments
parente7d4d3a34b404962919df21fc5f140173e13f89e (diff)
downloadnextcloud-server-2e424d84a4fadbd8ae075167ec5ae532d4deb56f.tar.gz
nextcloud-server-2e424d84a4fadbd8ae075167ec5ae532d4deb56f.zip
Ensure that the avatar and the user name will be kept together
Otherwise a line break could be added between the avatar and the user name when the wrapper is close to the right border of the message. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/css/comments.scss4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/comments/css/comments.scss b/apps/comments/css/comments.scss
index 01b739e5f5b..62a8e35eefc 100644
--- a/apps/comments/css/comments.scss
+++ b/apps/comments/css/comments.scss
@@ -165,6 +165,10 @@
background-color: var(--color-background-dark);
border-radius: 50vh;
padding: 1px 7px 1px 1px;
+
+ /* Ensure that the avatar and the user name will be kept together. */
+ white-space: nowrap;
+
.avatar {
img {
vertical-align: top;