Browse Source

Merge branch 'main' of github.com:DouyinFE/semi-design

point.halo 1 year ago
parent
commit
37f1045d26

+ 3 - 3
packages/semi-foundation/chat/chat.scss

@@ -132,7 +132,7 @@ $module: #{$prefix}-chat;
             flex-direction: row-reverse;
 
             .#{$module}-chatBox-wrap {
-                align-items: end;
+                align-items: flex-end;
             }
         }
 
@@ -204,7 +204,7 @@ $module: #{$prefix}-chat;
         &-wrap {
             display: flex;
             flex-direction: column;
-            align-items: start;
+            align-items: flex-start;
             position: relative;
             row-gap: $spacing-chat_chatBox_wrap;
         }
@@ -431,7 +431,7 @@ $module: #{$prefix}-chat;
             border-radius: $radius-chat_inputBox_container;
             padding: $spacing-chat_inputBox_container-padding;
             border: $width-chat_inputBox_container-border solid $color-chat_inputBox_container-border;
-            align-items: end;
+            align-items: flex-end;
         }
             
         &-inputArea {

+ 1 - 1
packages/semi-foundation/chat/foundation.ts

@@ -113,7 +113,7 @@ export default class ChatFoundation <P = Record<string, any>, S = Record<string,
     }
 
     containerScroll = (e: any) => {
-        e.persist();
+        this._persistEvent(e);
         const update = () => {
             this.getScroll(e.target);
         };