1
+ .message {
2
+ position : relative;
3
+ height : min-content;
4
+ box-sizing : border-box;
5
+ width : 100% ;
6
+ font-size : 14px ;
7
+ border-radius : 5px ;
8
+ padding-left : 10px ;
9
+ padding-right : 10px ;
10
+ }
11
+
12
+ .message : not (.chat-input ) {
13
+ margin-bottom : 20px ;
14
+ }
15
+
16
+ .message : hover .message-start-editing-button {
17
+ opacity : 1 !important ;
18
+ }
19
+
20
+ .message-user {
21
+ background-color : var (--chat-user-message-background-color );
22
+ color : var (--chat-user-message-font-color );
23
+ padding : 10px ;
24
+ }
25
+
26
+ .message-assistant-chat {
27
+ color : var (--chat-assistant-message-font-color );
28
+ }
29
+
30
+ .message-assistant-agent {
31
+ background-color : var (--purple-300 );
32
+ padding : 10px ;
33
+ }
34
+
35
+ .message-assistant-agent p {
36
+ color : var (--grey-900 )!important ;
37
+ }
38
+
39
+ .chat-message-buttons {
40
+ display : flex;
41
+ flex-direction : row;
42
+ gap : 8px ;
43
+ margin-top : 10px ;
44
+ margin-bottom : 10px ;
45
+ flex-wrap : wrap;
46
+ }
47
+
48
+ .chat-taskpane-smart-debug-error-message {
49
+ white-space : pre;
50
+ font-family : monospace;
51
+ margin : 0 ;
52
+ overflow-x : auto;
53
+ }
54
+
55
+ .message-text {
56
+ align-items : center;
57
+ }
58
+
59
+ /* Message Action Buttons Container */
60
+ .message-action-buttons {
61
+ position : absolute;
62
+ bottom : 8px ;
63
+ right : 8px ;
64
+ display : flex;
65
+ border-radius : 4px ;
66
+ overflow : hidden; /* Ensures inner buttons don't break the rounded corners */
67
+ }
68
+
69
+ /* Common styles for action buttons */
70
+ .message-action-buttons button ,
71
+ .message-start-editing-button {
72
+ cursor : pointer;
73
+ opacity : 0 ;
74
+ transition : opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
75
+ background-color : var (--jp-layout-color3 );
76
+ border : none;
77
+ display : flex;
78
+ align-items : center;
79
+ justify-content : center;
80
+ color : var (--jp-content-font-color1 );
81
+ }
82
+
83
+ /* Action buttons in the group */
84
+ .message-action-buttons button {
85
+ width : 28px ;
86
+ height : 28px ;
87
+ padding : 0 ;
88
+ border-radius : 0 ; /* Remove individual button radius */
89
+ }
90
+
91
+ /* Add subtle separator between buttons */
92
+ .message-action-buttons button : not (: last-child ) {
93
+ border-right : 1px solid var (--jp-border-color1 );
94
+ }
95
+
96
+ /* Remove the individual button radius styles since we're handling it at the container level */
97
+ .message-action-buttons button : first-child ,
98
+ .message-action-buttons button : last-child {
99
+ border-radius : 0 ;
100
+ }
101
+
102
+ /* Standalone edit button */
103
+ .message-start-editing-button {
104
+ position : relative;
105
+ padding : 4px ;
106
+ border-radius : 4px ;
107
+ }
108
+
109
+ /* SVG icon color */
110
+ .message-action-buttons button svg {
111
+ color : var (--jp-content-font-color1 );
112
+ }
113
+
114
+ /* Hover states */
115
+ .message-action-buttons button : hover ,
116
+ .message-start-editing-button : hover {
117
+ background-color : var (--jp-layout-color4 );
118
+ }
119
+
120
+ /* Show buttons on message hover */
121
+ .message : hover .message-action-buttons button ,
122
+ .message : hover .message-start-editing-button {
123
+ opacity : 1 ;
124
+ }
125
+
126
+ .message-edit-buttons {
127
+ display : flex;
128
+ gap : 8px ;
129
+ padding : 5px ;
130
+ }
131
+
132
+ .message-edit-buttons button {
133
+ padding : 4px 12px ;
134
+ border-radius : 4px ;
135
+ background-color : var (--jp-layout-color1 );
136
+ color : var (--jp-content-font-color1 );
137
+ border : 1px solid var (--jp-border-color1 );
138
+ cursor : pointer;
139
+ }
140
+
141
+ .message-edit-buttons button : hover {
142
+ background-color : var (--jp-layout-color2 );
143
+ }
144
+
145
+ .chat-message-alert {
146
+ background-color : var (--purple-300 );
147
+ border-radius : 5px ;
148
+ padding : 10px ;
149
+ border : 1px solid var (--purple-500 );
150
+ }
151
+
152
+ .chat-message-alert a {
153
+ color : var (--purple-700 );
154
+ text-decoration : underline;
155
+ }
0 commit comments