@@ -74,13 +74,13 @@ export function ChatBoxExample() {
74
74
75
75
return (
76
76
< div className = "space-y-6" >
77
- < div className = "flex gap-4 justify-between items-center " >
77
+ < div className = "flex items-center justify-between gap-4 " >
78
78
< Avatar
79
79
name = { USERS_DATA [ 3 ] . name }
80
80
src = { `https://api.dicebear.com/7.x/notionists/svg?seed=${ USERS_DATA [ 3 ] . name } &backgroundColor=ffdfbf,ffd5dc,c0aede,d1d4f9,b6e3f4` }
81
81
/>
82
82
< div >
83
- < Text className = "font-semibold text-sm leading-tight" >
83
+ < Text className = "text-sm font-semibold leading-tight" >
84
84
Jackson Lee
85
85
</ Text >
86
86
< Text className = "text-secondary-500 text-sm leading-tight" >
@@ -95,28 +95,28 @@ export function ChatBoxExample() {
95
95
Hi, how can I help you today?
96
96
</ Message >
97
97
< div className = "flex flex-row-reverse" >
98
- < Message className = "bg-primary-500 dark:bg-primary-300/90 !text-white dark:!text-secondary-900 dark:!font-semibold" >
98
+ < Message className = "bg-primary-500 dark:bg-primary-300/90 dark:!text-secondary-900 !text-white dark:!font-semibold" >
99
99
Hey, I'm having trouble with my account.
100
100
</ Message >
101
101
</ div >
102
102
< Message className = "bg-secondary-100 dark:bg-secondary-800" >
103
103
What seems to be the problem?
104
104
</ Message >
105
105
< div className = "flex flex-row-reverse" >
106
- < Message className = "bg-primary-500 dark:bg-primary-300/90 !text-white dark:!text-secondary-900 dark:!font-semibold" >
106
+ < Message className = "bg-primary-500 dark:bg-primary-300/90 dark:!text-secondary-900 !text-white dark:!font-semibold" >
107
107
I can't log in.
108
108
</ Message >
109
109
</ div >
110
110
{ messages &&
111
111
messages . map ( ( message , index ) => (
112
112
< div key = { index } className = "flex flex-row-reverse" >
113
- < Message className = "bg-primary-500 dark:bg-primary-300/90 !text-white dark:!text-secondary-900 dark:!font-semibold" >
113
+ < Message className = "bg-primary-500 dark:bg-primary-300/90 dark:!text-secondary-900 !text-white dark:!font-semibold" >
114
114
{ message }
115
115
</ Message >
116
116
</ div >
117
117
) ) }
118
118
</ div >
119
- < div className = "flex gap-2 items-center" >
119
+ < div className = "flex items-center gap-2 " >
120
120
< InputField
121
121
ref = { ref }
122
122
placeholder = "Type your message..."
@@ -157,14 +157,14 @@ function NewMessageDialog() {
157
157
< TooltipContent > New message</ TooltipContent >
158
158
</ Tooltip >
159
159
< DialogOverlay />
160
- < DialogContent className = "!p-0 dark:!bg-secondary-900" >
160
+ < DialogContent className = "dark:!bg-secondary-900 !p-0 " >
161
161
< DialogHeader className = "!p-4" >
162
162
< DialogTitle > New message</ DialogTitle >
163
163
< Text className = "text-sm leading-tight opacity-60" >
164
164
Invite a user to this thread. This will create a new group message.
165
165
</ Text >
166
166
</ DialogHeader >
167
- < Command className = "border-y dark:border-secondary-700 !rounded-none dark:!bg-secondary-900" >
167
+ < Command className = "dark:border-secondary-700 dark:!bg-secondary-900 !rounded-none border-y " >
168
168
< CommandInput placeholder = "Type a command or search..." />
169
169
< CommandList >
170
170
< CommandEmpty > No results found.</ CommandEmpty >
@@ -175,13 +175,13 @@ function NewMessageDialog() {
175
175
className = "!rounded-lg"
176
176
onSelect = { ( ) => dispatch ( user . id ) }
177
177
>
178
- < div className = "flex w-full gap-3 items-center" >
178
+ < div className = "flex w-full items-center gap-3 " >
179
179
< Avatar
180
180
name = { user . name }
181
181
src = { `https://api.dicebear.com/7.x/notionists/svg?seed=${ user . name } &backgroundColor=ffdfbf,ffd5dc,c0aede,d1d4f9,b6e3f4` }
182
182
/>
183
183
< div >
184
- < Text className = "font-semibold text-sm leading-tight" >
184
+ < Text className = "text-sm font-semibold leading-tight" >
185
185
{ user . name }
186
186
</ Text >
187
187
< Text className = "text-secondary-500 text-sm leading-tight" >
@@ -198,7 +198,7 @@ function NewMessageDialog() {
198
198
</ CommandGroup >
199
199
</ CommandList >
200
200
</ Command >
201
- < DialogFooter className = "!p-4 !justify-between items-center " >
201
+ < DialogFooter className = "items-center !justify-between !p-4 " >
202
202
{ selected . length > 0 ? (
203
203
< AvatarGroup >
204
204
{ selected . map ( ( user_index ) => {
@@ -213,7 +213,7 @@ function NewMessageDialog() {
213
213
} ) }
214
214
</ AvatarGroup >
215
215
) : (
216
- < Text className = "text-sm dark:text-secondary-500 text-secondary-400" >
216
+ < Text className = "dark:text-secondary-500 text-secondary-400 text-sm " >
217
217
Select users to add to this thread.
218
218
</ Text >
219
219
) }
@@ -238,7 +238,7 @@ function Message({
238
238
return (
239
239
< Text
240
240
className = { classNames (
241
- "px-3 py-1.5 rounded-md max-w-[75%] text-sm font-medium text-secondary-800 dark: text-secondary-100 leading-snug" ,
241
+ "text-secondary-800 dark:text-secondary-100 max-w-[75%] rounded-md px-3 py-1.5 text-sm font-medium leading-snug" ,
242
242
className ,
243
243
) }
244
244
>
0 commit comments