Skip to content

Commit

Permalink
fix(chat): Button aligment
Browse files Browse the repository at this point in the history
  • Loading branch information
marker dao ® committed Sep 5, 2024
1 parent 9b6298b commit d924142
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.dx-chat-message-box {
display: flex;
align-items: center;
align-items: flex-end;
}

.dx-chat-message-box-text-area {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$border-color,
$gap,
$textarea-border-radius,
$button-size
$button-gap
) {
.dx-chat-message-box {
padding: $padding;
Expand All @@ -16,4 +16,8 @@
border-radius: $textarea-border-radius;
}
}

.dx-chat-message-box-button {
margin-bottom: $button-gap;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$chat-messagebox-border-color,
$chat-messagebox-gap,
$chat-messagebox-textarea-border-radius,
$chat-messagebox-button-size,
$chat-messagebox-buton-gap
);
@include chat-messagebubble(
$chat-bubble-padding,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ $chat-bubble-padding: null !default;
$chat-bubble-container-gap: 4px !default;
$chat-messagebox-padding: null !default;
$chat-messagebox-textarea-border-radius: $texteditor-input-border-radius !default;
$chat-messagebox-button-size: null !default;
$chat-messagebox-gap: 8px !default;
$chat-messagebox-buton-gap: 2px !default;
$chat-messagelist-padding: null !default;
$chat-messagegroup-gap: 4px !default;
$chat-messagegroup-padding: null !default;
Expand All @@ -25,7 +25,6 @@ $chat-information-font-size: 12px !default;
$chat-bubble-border-radius: 12px !default;
$chat-bubble-padding: 8px 12px !default;
$chat-messagebox-padding: 20px !default;
$chat-messagebox-button-size: 32px !default;
$chat-messagelist-padding: 0 20px !default;
$chat-messagegroup-padding: 24px !default;
}
Expand All @@ -34,7 +33,6 @@ $chat-information-font-size: 12px !default;
$chat-bubble-border-radius: 8px !default;
$chat-bubble-padding: 6px 8px !default;
$chat-messagebox-padding: 16px !default;
$chat-messagebox-button-size: 24px !default;
$chat-messagelist-padding: 0 16px !default;
$chat-messagegroup-padding: 12px !default;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$chat-messagebox-border-color,
$chat-messagebox-gap,
$chat-messagebox-textarea-border-radius,
$chat-messagebox-button-size
$chat-messagebox-buton-gap
);
@include chat-messagebubble(
$chat-bubble-padding,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ $chat-bubble-padding: null !default;
$chat-bubble-container-gap: 4px !default;
$chat-messagebox-padding: null !default;
$chat-messagebox-textarea-border-radius: null !default;
$chat-messagebox-button-size: null !default;
$chat-messagebox-gap: 8px !default;
$chat-messagebox-buton-gap: 0 !default;
$chat-messagelist-padding: null !default;
$chat-messagegroup-gap: 4px !default;
$chat-messagegroup-padding: null !default;
Expand All @@ -26,7 +26,6 @@ $chat-information-font-size: 12px !default;
$chat-bubble-padding: 8px 12px !default;
$chat-messagebox-padding: 20px !default;
$chat-messagebox-textarea-border-radius: 4px !default;
$chat-messagebox-button-size: 34px !default;
$chat-messagelist-padding: 0 20px !default;
$chat-messagegroup-padding: 24px !default;
}
Expand All @@ -36,7 +35,6 @@ $chat-information-font-size: 12px !default;
$chat-bubble-padding: 6px 8px !default;
$chat-messagebox-padding: 16px !default;
$chat-messagebox-textarea-border-radius: 4px !default;
$chat-messagebox-button-size: 24px !default;
$chat-messagelist-padding: 0 16px !default;
$chat-messagegroup-padding: 12px !default;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$chat-messagebox-border-color,
$chat-messagebox-gap,
$chat-messagebox-textarea-border-radius,
$chat-messagebox-button-size
$chat-messagebox-buton-gap
);
@include chat-messagebubble(
$chat-bubble-padding,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $chat-bubble-padding: null !default;
$chat-bubble-container-gap: 4px !default;
$chat-messagebox-padding: null !default;
$chat-messagebox-textarea-border-radius: null !default;
$chat-messagebox-button-size: null !default;
$chat-messagebox-buton-gap: null !default;
$chat-messagebox-gap: 8px !default;
$chat-messagelist-padding: null !default;
$chat-messagegroup-gap: 4px !default;
Expand All @@ -21,21 +21,21 @@ $chat-header-padding: 20px !default;
$chat-information-font-size: 12px !default;

@if $size == "default" {
$chat-messagebox-buton-gap: 10px !default;
$chat-bubble-border-radius: 8px !default;
$chat-bubble-padding: 8px 16px !default;
$chat-messagebox-padding: 20px !default;
$chat-messagebox-textarea-border-radius: 8px !default;
$chat-messagebox-button-size: 36px !default;
$chat-messagelist-padding: 0 20px !default;
$chat-messagegroup-padding: 24px !default;
}

@else if $size == "compact" {
$chat-messagebox-buton-gap: 7px !default;
$chat-bubble-border-radius: 4px !default;
$chat-bubble-padding: 6px 8px !default;
$chat-messagebox-padding: 16px !default;
$chat-messagebox-textarea-border-radius: 4px !default;
$chat-messagebox-button-size: 28px !default;
$chat-messagelist-padding: 0 16px !default;
$chat-messagegroup-padding: 12px !default;
}

0 comments on commit d924142

Please sign in to comment.