bayi 2 éve
szülő
commit
3cb7418c00
2 módosított fájl, 8 hozzáadás és 1 törlés
  1. 4 1
      pages/chat/index.less
  2. 4 0
      pages/chat/index.wxss

+ 4 - 1
pages/chat/index.less

@@ -26,6 +26,7 @@
           max-width: 80%;
           padding: 20rpx;
           box-sizing: border-box;
+          display: inline-block;
           font-size: 28rpx;
           line-height: 42rpx;
           border-radius: 14rpx;
@@ -62,7 +63,9 @@
         display: flex;
         flex-direction: column;
         align-items: flex-end;
-
+        .time{
+          text-align: right;
+        }
         .message {
           display: inline-block;
           background-color: #3DD076;

+ 4 - 0
pages/chat/index.wxss

@@ -26,6 +26,7 @@
   max-width: 80%;
   padding: 20rpx;
   box-sizing: border-box;
+  display: inline-block;
   font-size: 28rpx;
   line-height: 42rpx;
   border-radius: 14rpx;
@@ -55,6 +56,9 @@
   flex-direction: column;
   align-items: flex-end;
 }
+.chat .content .self .contentBox .time {
+  text-align: right;
+}
 .chat .content .self .contentBox .message {
   display: inline-block;
   background-color: #3DD076;