|
1 | 1 | .#{$eccgui}-chat__content { |
2 | | - --#{$eccgui}-chat__content-background: #{$light-gray5}; |
3 | | - |
4 | 2 | position: relative; |
5 | 3 | min-height: $button-height; |
6 | 4 | padding: $eccgui-size-inline-whitespace; |
| 5 | + overflow: auto; |
7 | 6 | background-color: var(--#{$eccgui}-chat__content-background); |
8 | 7 | border-radius: $pt-border-radius; |
9 | 8 | } |
10 | 9 |
|
11 | 10 | .#{$eccgui}-chat__content--display-free { |
12 | | - padding: 0; |
| 11 | + padding: 1px 0; |
13 | 12 |
|
14 | 13 | --#{$eccgui}-chat__content-background: transparent; |
15 | 14 | } |
16 | 15 |
|
17 | 16 | .#{$eccgui}-chat__content--display-bubble { |
18 | 17 | margin-left: 0.5 * $eccgui-size-block-whitespace; |
19 | 18 |
|
20 | | - &::before { |
21 | | - position: absolute; |
22 | | - top: calc(#{mini-units(3)} - #{0.5 * $eccgui-size-block-whitespace}); |
23 | | - left: calc(-0.5 * #{$eccgui-size-block-whitespace} + 1px); |
24 | | - width: $eccgui-size-block-whitespace; |
25 | | - height: $eccgui-size-block-whitespace; |
26 | | - content: " "; |
27 | | - background-color: var(--#{$eccgui}-chat__content-background); |
28 | | - clip-path: polygon(0% 50%, 50% 0%, 50% 100%); |
29 | | - } |
30 | | - |
31 | 19 | &.#{$eccgui}-chat__content--align-right { |
32 | 20 | margin-right: 0.5 * $eccgui-size-block-whitespace; |
33 | 21 | margin-left: none; |
| 22 | + } |
| 23 | +} |
34 | 24 |
|
| 25 | +.#{$eccgui}-chat__content-wrapper { |
| 26 | + --#{$eccgui}-chat__content-background: #{$light-gray5}; |
| 27 | + &:has(.#{$eccgui}-chat__content--display-bubble) { |
| 28 | + position: relative; |
| 29 | + |
| 30 | + &::before { |
| 31 | + position: absolute; |
| 32 | + top: calc(#{mini-units(3)} - #{0.5 * $eccgui-size-block-whitespace}); |
| 33 | + left: 0; |
| 34 | + width: $eccgui-size-block-whitespace; |
| 35 | + height: $eccgui-size-block-whitespace; |
| 36 | + content: " "; |
| 37 | + background-color: var(--#{$eccgui}-chat__content-background); |
| 38 | + transform: rotate(45deg); |
| 39 | + } |
| 40 | + } |
| 41 | + &:has(.#{$eccgui}-chat__content--display-bubble.#{$eccgui}-chat__content--align-right) { |
35 | 42 | &::before { |
36 | | - right: calc(-0.5 * #{$eccgui-size-block-whitespace} + 1px); |
| 43 | + right: 0; |
37 | 44 | left: auto; |
38 | | - clip-path: polygon(100% 50%, 50% 0%, 50% 100%); |
39 | 45 | } |
40 | 46 | } |
41 | 47 | } |
42 | 48 |
|
| 49 | +.#{$eccgui}-chat__content--limitheight { |
| 50 | + max-height: 50vh; |
| 51 | +} |
| 52 | + |
43 | 53 | .eccgui-chat__inputfield { |
44 | 54 | min-height: mini-units(9); |
45 | 55 | max-height: 39vh; |
|
0 commit comments