@@ -19,13 +19,13 @@ const SuggestionCard: React.FC<SuggestionCardProps> = ({
19
19
} ) => {
20
20
const document = suggestion . original_document ;
21
21
return (
22
- < div className = "bg-white shadow-lg shadow-blue-500/50 rounded-md p-4 relative flex flex-col justify-between h-full" >
22
+ < div className = "bg-white dark:bg-gray-800 shadow-lg shadow-blue-500/50 rounded-md p-4 relative flex flex-col justify-between h-full" >
23
23
< div className = "flex items-center group relative" >
24
24
< div className = "relative" >
25
- < h3 className = "text-lg font-semibold text-gray-800" >
25
+ < h3 className = "text-lg font-semibold text-gray-800 dark:text-gray-200 " >
26
26
{ document . title }
27
27
</ h3 >
28
- < p className = "text-sm text-gray-600 mt-2 truncate" >
28
+ < p className = "text-sm text-gray-600 dark:text-gray-400 mt-2 truncate" >
29
29
{ document . content . length > 40
30
30
? `${ document . content . substring ( 0 , 40 ) } ...`
31
31
: document . content }
@@ -34,15 +34,15 @@ const SuggestionCard: React.FC<SuggestionCardProps> = ({
34
34
{ document . tags . map ( ( tag ) => (
35
35
< span
36
36
key = { tag }
37
- className = "bg-blue-100 text-blue-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded-full"
37
+ className = "bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 text-xs font-medium mr-2 px-2.5 py-0.5 rounded-full"
38
38
>
39
39
{ tag }
40
40
</ span >
41
41
) ) }
42
42
</ div >
43
43
</ div >
44
- < div className = "absolute inset-0 bg-black bg-opacity-50 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center p-4 rounded-md" >
45
- < div className = "text-sm text-white p-2 bg-gray-800 rounded-md w-full max-h-full overflow-y-auto" >
44
+ < div className = "absolute inset-0 bg-black bg-opacity-50 dark:bg-opacity-70 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center p-4 rounded-md" >
45
+ < div className = "text-sm text-white p-2 bg-gray-800 dark:bg-gray-900 rounded-md w-full max-h-full overflow-y-auto" >
46
46
< p className = "mt-2 whitespace-pre-wrap" > { document . content } </ p >
47
47
</ div >
48
48
</ div >
@@ -52,7 +52,7 @@ const SuggestionCard: React.FC<SuggestionCardProps> = ({
52
52
type = "text"
53
53
value = { suggestion . suggested_title || "" }
54
54
onChange = { ( e ) => onTitleChange ( suggestion . id , e . target . value ) }
55
- className = "w-full border border-gray-300 rounded px-2 py-1 mt-2 focus:outline-none focus:ring-2 focus:ring-blue-500"
55
+ className = "w-full border border-gray-300 dark:border-gray-600 rounded px-2 py-1 mt-2 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:text-gray-200 "
56
56
/>
57
57
< div className = "mt-4" >
58
58
< ReactTags
@@ -79,6 +79,23 @@ const SuggestionCard: React.FC<SuggestionCardProps> = ({
79
79
onDelete = { ( index ) => onTagDeletion ( suggestion . id , index ) }
80
80
allowNew = { true }
81
81
placeholderText = "Add a tag"
82
+ classNames = { {
83
+ root : "react-tags dark:bg-gray-800" ,
84
+ rootIsActive : "is-active" ,
85
+ rootIsDisabled : "is-disabled" ,
86
+ rootIsInvalid : "is-invalid" ,
87
+ label : "react-tags__label" ,
88
+ tagList : "react-tags__list" ,
89
+ tagListItem : "react-tags__list-item" ,
90
+ tag : "react-tags__tag dark:bg-blue-900 dark:text-blue-200" ,
91
+ tagName : "react-tags__tag-name" ,
92
+ comboBox : "react-tags__combobox dark:bg-gray-700 dark:text-gray-200" ,
93
+ input : "react-tags__combobox-input dark:bg-gray-700 dark:text-gray-200" ,
94
+ listBox : "react-tags__listbox dark:bg-gray-700 dark:text-gray-200" ,
95
+ option : "react-tags__listbox-option dark:bg-gray-700 dark:text-gray-200 hover:bg-blue-500 dark:hover:bg-blue-800" ,
96
+ optionIsActive : "is-active" ,
97
+ highlight : "react-tags__highlight dark:bg-gray-800" ,
98
+ } }
82
99
/>
83
100
</ div >
84
101
</ div >
0 commit comments