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 18:35:38 +0200
commit92bf1cec44d372ea660373e953b89c4fc75d4d16 (patch)
tree904a8ade33a730ad20bf5252c7d3b3536c5c798c /apps/comments
parent45cde96d83f414792b9797e6a746db243dc3f770 (diff)
downloadnextcloud-server-92bf1cec44d372ea660373e953b89c4fc75d4d16.tar.gz
nextcloud-server-92bf1cec44d372ea660373e953b89c4fc75d4d16.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;