anhkhoiphan commited on
Commit
bab8948
·
verified ·
1 Parent(s): aead23e

Create custom.css

Browse files
Files changed (1) hide show
  1. public/custom.css +54 -0
public/custom.css ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Avatar tùy chỉnh cho user và assistant */
2
+ .message-avatar img[alt="User"] {
3
+ content: url('/public/user-avatar.png') !important;
4
+ }
5
+
6
+ .message-avatar img[alt="Assistant"] {
7
+ content: url('/public/agent-avatar.png') !important;
8
+ }
9
+
10
+ /* Hoặc sử dụng class selector */
11
+ .user-message .message-avatar img {
12
+ content: url('/public/user-avatar.png') !important;
13
+ }
14
+
15
+ .assistant-message .message-avatar img {
16
+ content: url('/public/agent-avatar.png') !important;
17
+ }
18
+
19
+ /* Style avatar size */
20
+ .message-avatar img {
21
+ width: 40px !important;
22
+ height: 40px !important;
23
+ border-radius: 50% !important;
24
+ }
25
+
26
+ /* Thay thế avatar mặc định bằng background */
27
+ .message-avatar {
28
+ width: 40px;
29
+ height: 40px;
30
+ border-radius: 50%;
31
+ overflow: hidden;
32
+ }
33
+
34
+ /* User avatar */
35
+ .user-message .message-avatar::before {
36
+ content: "";
37
+ display: block;
38
+ width: 100%;
39
+ height: 100%;
40
+ background-image: url('/public/user-avatar.png');
41
+ background-size: cover;
42
+ background-position: center;
43
+ }
44
+
45
+ /* Assistant avatar */
46
+ .assistant-message .message-avatar::before {
47
+ content: "";
48
+ display: block;
49
+ width: 100%;
50
+ height: 100%;
51
+ background-image: url('/public/agent-avatar.png');
52
+ background-size: cover;
53
+ background-position: center;
54
+ }