Skip to content

Commit

Permalink
feat(chat): Add text-overflow && Fix button size
Browse files Browse the repository at this point in the history
  • Loading branch information
marker dao ® committed Sep 4, 2024
1 parent b220247 commit 6bb9fb6
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
$gap,
$textarea-min-height,
$textarea-border-radius,
$button-height,
$button-width
$button-size
) {
.dx-chat-message-box {
padding: $padding;
Expand All @@ -22,8 +21,8 @@

.dx-chat-message-box-button {
&.dx-button.dx-button-default {
height: $button-height;
width: $button-width;
height: $button-size;
width: $button-size;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "../../../mixins" as *;

.dx-chat-message-group {
display: grid;
align-items: start;
Expand All @@ -6,6 +8,12 @@
.dx-chat-message-group-information {
display: flex;
grid-row: 1;
max-width: 100%;
min-width: 0;
}

.dx-chat-message-author-name {
@include dx-overflow();
}

.dx-chat-message-group-alignment-start {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
$chat-messagebox-gap,
$chat-messagebox-textarea-min-height,
$chat-messagebox-textarea-border-radius,
$chat-messagebox-button-height,
$chat-messagebox-button-width
$chat-messagebox-button-size,
);
@include chat-messagebubble(
$chat-bubble-padding,
Expand Down
9 changes: 3 additions & 6 deletions packages/devextreme-scss/scss/widgets/fluent/chat/_sizes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ $chat-bubble-container-gap: 4px !default;
$chat-messagebox-padding: null !default;
$chat-messagebox-textarea-min-height: null !default;
$chat-messagebox-textarea-border-radius: $texteditor-input-border-radius !default;
$chat-messagebox-button-height: null !default;
$chat-messagebox-button-width: null !default;
$chat-messagebox-button-size: null !default;
$chat-messagebox-gap: 8px !default;
$chat-messagelist-padding: null !default;
$chat-messagegroup-gap: 4px !default;
Expand All @@ -27,8 +26,7 @@ $chat-information-font-size: 12px !default;
$chat-bubble-padding: 8px 12px !default;
$chat-messagebox-padding: 20px !default;
$chat-messagebox-textarea-min-height: 40px !default;
$chat-messagebox-button-height: 40px !default;
$chat-messagebox-button-width: 32px !default;
$chat-messagebox-button-size: 32px !default;
$chat-messagelist-padding: 20px !default;
$chat-messagelist-gap: 24px !default;
}
Expand All @@ -38,8 +36,7 @@ $chat-information-font-size: 12px !default;
$chat-bubble-padding: 6px 8px !default;
$chat-messagebox-padding: 16px !default;
$chat-messagebox-textarea-min-height: 32px !default;
$chat-messagebox-button-height: 32px !default;
$chat-messagebox-button-width: 24px !default;
$chat-messagebox-button-size: 24px !default;
$chat-messagelist-padding: 16px !default;
$chat-messagelist-gap: 12px !default;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
$chat-messagebox-gap,
$chat-messagebox-textarea-min-height,
$chat-messagebox-textarea-border-radius,
$chat-messagebox-button-height,
$chat-messagebox-button-width
$chat-messagebox-button-size
);
@include chat-messagebubble(
$chat-bubble-padding,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ $chat-bubble-container-gap: 4px !default;
$chat-messagebox-padding: null !default;
$chat-messagebox-textarea-min-height: null !default;
$chat-messagebox-textarea-border-radius: null !default;
$chat-messagebox-button-height: null !default;
$chat-messagebox-button-width: null !default;
$chat-messagebox-button-size: null !default;
$chat-messagebox-gap: 8px !default;
$chat-messagelist-padding: null !default;
$chat-messagegroup-gap: 4px !default;
Expand All @@ -27,8 +26,7 @@ $chat-information-font-size: 12px !default;
$chat-messagebox-padding: 20px !default;
$chat-messagebox-textarea-min-height: 34px !default;
$chat-messagebox-textarea-border-radius: 4px !default;
$chat-messagebox-button-height: 34px !default;
$chat-messagebox-button-width: 34px !default;
$chat-messagebox-button-size: 34px !default;
$chat-messagelist-padding: 20px !default;
$chat-messagelist-gap: 24px !default;
}
Expand All @@ -39,8 +37,7 @@ $chat-information-font-size: 12px !default;
$chat-messagebox-padding: 16px !default;
$chat-messagebox-textarea-min-height: 28px !default;
$chat-messagebox-textarea-border-radius: 4px !default;
$chat-messagebox-button-height: 28px !default;
$chat-messagebox-button-width: 24px !default;
$chat-messagebox-button-size: 24px !default;
$chat-messagelist-padding: 16px !default;
$chat-messagelist-gap: 12px !default;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
$chat-messagebox-gap,
$chat-messagebox-textarea-min-height,
$chat-messagebox-textarea-border-radius,
$chat-messagebox-button-height,
$chat-messagebox-button-width
$chat-messagebox-button-size
);
@include chat-messagebubble(
$chat-bubble-padding,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ $chat-bubble-container-gap: 4px !default;
$chat-messagebox-padding: null !default;
$chat-messagebox-textarea-min-height: null !default;
$chat-messagebox-textarea-border-radius: null !default;
$chat-messagebox-button-height: null !default;
$chat-messagebox-button-width: null !default;
$chat-messagebox-button-size: null !default;
$chat-messagebox-gap: 8px !default;
$chat-messagelist-padding: null !default;
$chat-messagegroup-gap: 4px !default;
Expand All @@ -27,8 +26,7 @@ $chat-information-font-size: 12px !default;
$chat-messagebox-padding: 20px !default;
$chat-messagebox-textarea-min-height: 48px !default;
$chat-messagebox-textarea-border-radius: 8px !default;
$chat-messagebox-button-height: 48px !default;
$chat-messagebox-button-width: 36px !default;
$chat-messagebox-button-size: 36px !default;
$chat-messagelist-padding: 20px !default;
$chat-messagelist-gap: 24px !default;
}
Expand All @@ -39,8 +37,7 @@ $chat-information-font-size: 12px !default;
$chat-messagebox-padding: 16px !default;
$chat-messagebox-textarea-min-height: 32px !default;
$chat-messagebox-textarea-border-radius: 4px !default;
$chat-messagebox-button-height: 32px !default;
$chat-messagebox-button-width: 28px !default;
$chat-messagebox-button-size: 28px !default;
$chat-messagelist-padding: 16px !default;
$chat-messagelist-gap: 12px !default;
}

0 comments on commit 6bb9fb6

Please sign in to comment.