Просмотр исходного кода

rotate chat arrow to top

GitOrigin-RevId: 755e7de8b9b2c11614faec79baac61618fd30006
Hugh O'Brien 6 лет назад
Родитель
Сommit
87c83b96db

+ 1 - 1
services/web/app/views/project/editor/chat.pug

@@ -35,7 +35,7 @@ aside.chat(
 						.message(
 							ng-style="getMessageStyle(message.user);"
 						)
-							.arrow(ng-style="getArrowStyle(message.user)")
+							.arrow(ng-if="message.user.id != user.id" ng-style="getArrowStyle(message.user)")
 							.message-content
 								p(
 									mathjax,

+ 3 - 2
services/web/frontend/stylesheets/app/editor/chat.less

@@ -67,8 +67,9 @@
           }
 
           .arrow {
-            right: 100%;
-            top: @line-height-computed / 4;
+            transform: rotate(90deg);
+            right: 90%;
+            top: -15px;
             border: solid;
             content: ' ';
             height: 0;