Skip to content

Commit

Permalink
fix(chat): Add padding top
Browse files Browse the repository at this point in the history
  • Loading branch information
marker dao ® committed Sep 5, 2024
1 parent 3f7780b commit 4a191a1
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
$messagegroup-gap,
$messagegroup-start-template,
$messagegroup-start-gap,
$messagegroup-padding-bottom,
$messagegroup-padding,
$information-font-size,
$information-color,
$information-gap
) {
.dx-chat-message-group {
row-gap: $messagegroup-gap;
padding-bottom: $messagegroup-padding-bottom;
padding-bottom: $messagegroup-padding;

&:first-child {
padding-top: $messagegroup-padding;
}
}

.dx-chat-message-group-information {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$chat-messagegroup-gap,
$chat-messagegroup-alignment-start-template,
$chat-messagegroup-alignment-start-gap,
$chat-messagegroup-padding-bottom,
$chat-messagegroup-padding,
$chat-information-font-size,
$chat-information-color,
$chat-information-gap
Expand Down
6 changes: 3 additions & 3 deletions packages/devextreme-scss/scss/widgets/fluent/chat/_sizes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $chat-messagebox-button-size: null !default;
$chat-messagebox-gap: 8px !default;
$chat-messagelist-padding: null !default;
$chat-messagegroup-gap: 4px !default;
$chat-messagegroup-padding-bottom: null !default;
$chat-messagegroup-padding: null !default;
$chat-information-gap: 8px !default;
$chat-avatar-size: 32px !default;
$chat-messagegroup-alignment-start-template: auto 1fr !default;
Expand All @@ -27,7 +27,7 @@ $chat-information-font-size: 12px !default;
$chat-messagebox-padding: 20px !default;
$chat-messagebox-button-size: 32px !default;
$chat-messagelist-padding: 0 20px !default;
$chat-messagegroup-padding-bottom: 24px !default;
$chat-messagegroup-padding: 24px !default;
}

@else if $size == "compact" {
Expand All @@ -36,5 +36,5 @@ $chat-information-font-size: 12px !default;
$chat-messagebox-padding: 16px !default;
$chat-messagebox-button-size: 24px !default;
$chat-messagelist-padding: 0 16px !default;
$chat-messagegroup-padding-bottom: 12px !default;
$chat-messagegroup-padding: 12px !default;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$chat-messagegroup-gap,
$chat-messagegroup-alignment-start-template,
$chat-messagegroup-alignment-start-gap,
$chat-messagegroup-padding-bottom,
$chat-messagegroup-padding,
$chat-information-font-size,
$chat-information-color,
$chat-information-gap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $chat-messagebox-button-size: null !default;
$chat-messagebox-gap: 8px !default;
$chat-messagelist-padding: null !default;
$chat-messagegroup-gap: 4px !default;
$chat-messagegroup-padding-bottom: null !default;
$chat-messagegroup-padding: null !default;
$chat-information-gap: 8px !default;
$chat-avatar-size: 32px !default;
$chat-messagegroup-alignment-start-template: auto 1fr !default;
Expand All @@ -28,7 +28,7 @@ $chat-information-font-size: 12px !default;
$chat-messagebox-textarea-border-radius: 4px !default;
$chat-messagebox-button-size: 34px !default;
$chat-messagelist-padding: 0 20px !default;
$chat-messagegroup-padding-bottom: 24px !default;
$chat-messagegroup-padding: 24px !default;
}

@else if $size == "compact" {
Expand All @@ -38,5 +38,5 @@ $chat-information-font-size: 12px !default;
$chat-messagebox-textarea-border-radius: 4px !default;
$chat-messagebox-button-size: 24px !default;
$chat-messagelist-padding: 0 16px !default;
$chat-messagegroup-padding-bottom: 12px !default;
$chat-messagegroup-padding: 12px !default;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$chat-messagegroup-gap,
$chat-messagegroup-alignment-start-template,
$chat-messagegroup-alignment-start-gap,
$chat-messagegroup-padding-bottom,
$chat-messagegroup-padding,
$chat-information-font-size,
$chat-information-color,
$chat-information-gap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $chat-messagebox-button-size: null !default;
$chat-messagebox-gap: 8px !default;
$chat-messagelist-padding: null !default;
$chat-messagegroup-gap: 4px !default;
$chat-messagegroup-padding-bottom: null !default;
$chat-messagegroup-padding: null !default;
$chat-information-gap: 8px !default;
$chat-avatar-size: 32px !default;
$chat-messagegroup-alignment-start-template: auto 1fr !default;
Expand All @@ -27,7 +27,7 @@ $chat-information-font-size: 12px !default;
$chat-messagebox-textarea-border-radius: 8px !default;
$chat-messagebox-button-size: 36px !default;
$chat-messagelist-padding: 0 20px !default;
$chat-messagegroup-padding-bottom: 24px !default;
$chat-messagegroup-padding: 24px !default;
}

@else if $size == "compact" {
Expand All @@ -37,5 +37,5 @@ $chat-information-font-size: 12px !default;
$chat-messagebox-textarea-border-radius: 4px !default;
$chat-messagebox-button-size: 28px !default;
$chat-messagelist-padding: 0 16px !default;
$chat-messagegroup-padding-bottom: 12px !default;
$chat-messagegroup-padding: 12px !default;
}

0 comments on commit 4a191a1

Please sign in to comment.