Skip to content

Commit b72c3cb

Browse files
Fix ConversationManager CSS styles to match new component structure
- Updated class names to match rewritten component (refresh-btn, create-btn, delete-btn, etc.) - Changed conversation-layout to conversation-content for grid layout - Updated header elements from h1/h2 to h2/h3 to match component structure - Added styles for new component elements (loading, no-selection, details-content, etc.) - Added proper styling for events-section, message-section, and detail-row elements - Updated responsive design to use correct class names - Fixed send button styling with send-btn class
1 parent 16ddbd7 commit b72c3cb

File tree

1 file changed

+129
-15
lines changed

1 file changed

+129
-15
lines changed

example/src/components/ConversationManager.css

Lines changed: 129 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
border-bottom: 2px solid #e5e7eb;
1414
}
1515

16-
.conversation-header h1 {
16+
.conversation-header h2 {
1717
margin: 0;
1818
color: #1f2937;
19-
font-size: 2rem;
19+
font-size: 1.5rem;
2020
}
2121

2222
.header-actions {
2323
display: flex;
2424
gap: 10px;
2525
}
2626

27-
.refresh-button, .create-button {
27+
.refresh-btn, .create-btn {
2828
padding: 8px 16px;
2929
border: none;
3030
border-radius: 6px;
@@ -34,25 +34,25 @@
3434
transition: all 0.2s;
3535
}
3636

37-
.refresh-button {
37+
.refresh-btn {
3838
background-color: #6b7280;
3939
color: white;
4040
}
4141

42-
.refresh-button:hover:not(:disabled) {
42+
.refresh-btn:hover:not(:disabled) {
4343
background-color: #4b5563;
4444
}
4545

46-
.create-button {
46+
.create-btn {
4747
background-color: #3b82f6;
4848
color: white;
4949
}
5050

51-
.create-button:hover:not(:disabled) {
51+
.create-btn:hover:not(:disabled) {
5252
background-color: #2563eb;
5353
}
5454

55-
.refresh-button:disabled, .create-button:disabled {
55+
.refresh-btn:disabled, .create-btn:disabled {
5656
opacity: 0.5;
5757
cursor: not-allowed;
5858
}
@@ -76,7 +76,7 @@
7676
text-align: center;
7777
}
7878

79-
.conversation-layout {
79+
.conversation-content {
8080
display: grid;
8181
grid-template-columns: 1fr 1fr;
8282
gap: 20px;
@@ -90,7 +90,7 @@
9090
padding: 20px;
9191
}
9292

93-
.conversation-list h2 {
93+
.conversation-list h3 {
9494
margin: 0 0 15px 0;
9595
color: #1f2937;
9696
font-size: 1.25rem;
@@ -175,7 +175,7 @@
175175
gap: 5px;
176176
}
177177

178-
.delete-button {
178+
.delete-btn {
179179
background: none;
180180
border: none;
181181
cursor: pointer;
@@ -185,18 +185,18 @@
185185
font-size: 16px;
186186
}
187187

188-
.delete-button:hover {
188+
.delete-btn:hover {
189189
background-color: #fee2e2;
190190
}
191191

192-
.conversation-detail {
192+
.conversation-details {
193193
background-color: #f9fafb;
194194
border: 1px solid #e5e7eb;
195195
border-radius: 8px;
196196
padding: 20px;
197197
}
198198

199-
.conversation-detail h2 {
199+
.conversation-details h3 {
200200
margin: 0 0 15px 0;
201201
color: #1f2937;
202202
font-size: 1.25rem;
@@ -278,6 +278,28 @@
278278
cursor: not-allowed;
279279
}
280280

281+
.send-btn {
282+
align-self: flex-start;
283+
padding: 8px 16px;
284+
background-color: #10b981;
285+
color: white;
286+
border: none;
287+
border-radius: 4px;
288+
cursor: pointer;
289+
font-size: 14px;
290+
font-weight: 500;
291+
transition: background-color 0.2s;
292+
}
293+
294+
.send-btn:hover:not(:disabled) {
295+
background-color: #059669;
296+
}
297+
298+
.send-btn:disabled {
299+
opacity: 0.5;
300+
cursor: not-allowed;
301+
}
302+
281303
.empty-state {
282304
text-align: center;
283305
padding: 60px 20px;
@@ -289,6 +311,98 @@
289311
margin-bottom: 10px;
290312
}
291313

314+
/* New structure styles */
315+
.loading {
316+
text-align: center;
317+
color: #6b7280;
318+
padding: 20px;
319+
font-style: italic;
320+
}
321+
322+
.no-selection {
323+
text-align: center;
324+
color: #6b7280;
325+
padding: 40px 20px;
326+
}
327+
328+
.details-content {
329+
display: flex;
330+
flex-direction: column;
331+
gap: 20px;
332+
}
333+
334+
.details-info {
335+
background-color: white;
336+
border: 1px solid #d1d5db;
337+
border-radius: 6px;
338+
padding: 15px;
339+
}
340+
341+
.detail-row {
342+
margin: 8px 0;
343+
font-size: 14px;
344+
display: flex;
345+
align-items: center;
346+
gap: 8px;
347+
}
348+
349+
.detail-row strong {
350+
color: #374151;
351+
min-width: 120px;
352+
}
353+
354+
.conversation-details .conversation-details {
355+
font-size: 12px;
356+
color: #6b7280;
357+
margin-top: 5px;
358+
}
359+
360+
.conversation-details .conversation-details > div {
361+
margin: 2px 0;
362+
}
363+
364+
.events-section {
365+
background-color: white;
366+
border: 1px solid #d1d5db;
367+
border-radius: 6px;
368+
padding: 15px;
369+
}
370+
371+
.events-section h4 {
372+
margin: 0 0 15px 0;
373+
color: #1f2937;
374+
font-size: 1rem;
375+
}
376+
377+
.no-events {
378+
text-align: center;
379+
color: #6b7280;
380+
padding: 20px;
381+
font-style: italic;
382+
}
383+
384+
.message-section {
385+
background-color: white;
386+
border: 1px solid #d1d5db;
387+
border-radius: 6px;
388+
padding: 15px;
389+
}
390+
391+
.message-section h4 {
392+
margin: 0 0 10px 0;
393+
color: #1f2937;
394+
font-size: 1rem;
395+
}
396+
397+
.event-message {
398+
margin-top: 8px;
399+
padding: 8px;
400+
background-color: #f3f4f6;
401+
border-radius: 4px;
402+
font-size: 13px;
403+
line-height: 1.4;
404+
}
405+
292406
/* Events and Messages Styles */
293407
.conversation-events {
294408
background-color: white;
@@ -389,7 +503,7 @@
389503

390504
/* Responsive design */
391505
@media (max-width: 768px) {
392-
.conversation-layout {
506+
.conversation-content {
393507
grid-template-columns: 1fr;
394508
}
395509

0 commit comments

Comments
 (0)