@@ -10,10 +10,10 @@ export function OpenDialog({ isOpen, onClose, savedProjects, onLoad, onDelete }:
10
10
< div className = "fixed inset-0 bg-black/25" />
11
11
< div className = "fixed inset-0 overflow-y-auto" >
12
12
< div className = "flex min-h-full items-center justify-center p-4" >
13
- < Dialog . Panel className = "w-full max-w-4xl max-h-[80vh] rounded-lg bg-white shadow-xl flex flex-col" >
14
- < div className = "flex items-center justify-between p-6 border-b" >
15
- < Dialog . Title className = "text-lg font-medium text-gray-900" > Open Project</ Dialog . Title >
16
- < button onClick = { onClose } className = "text-gray-400 hover:text-gray-600" >
13
+ < Dialog . Panel className = "w-full max-w-4xl max-h-[80vh] rounded-lg bg-white shadow-xl flex flex-col dark:bg-gray-800 " >
14
+ < div className = "flex items-center justify-between p-6 border-b dark:border-gray-700 " >
15
+ < Dialog . Title className = "text-lg font-medium text-gray-900 dark:text-gray-200 " > Open Project</ Dialog . Title >
16
+ < button onClick = { onClose } className = "text-gray-400 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-200 " >
17
17
< svg className = "w-6 h-6" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" >
18
18
< path
19
19
strokeLinecap = "round"
@@ -29,19 +29,19 @@ export function OpenDialog({ isOpen, onClose, savedProjects, onLoad, onDelete }:
29
29
{ savedProjects . length === 0 ? (
30
30
< div className = "flex items-center justify-center h-64" >
31
31
< div className = "text-center" >
32
- < FolderOpenIcon className = "mx-auto h-16 w-16 text-gray-300" />
33
- < p className = "mt-4 text-lg text-gray-500 font-medium" >
32
+ < FolderOpenIcon className = "mx-auto h-16 w-16 text-gray-300 dark:text-gray-400 " />
33
+ < p className = "mt-4 text-lg text-gray-500 font-medium dark:text-gray-200 " >
34
34
No saved projects found
35
35
</ p >
36
- < p className = "mt-1 text-sm text-gray-400" >
36
+ < p className = "mt-1 text-sm text-gray-400 dark:text-gray-400 " >
37
37
Create your first project using the Save option
38
38
</ p >
39
39
</ div >
40
40
</ div >
41
41
) : (
42
42
< div className = "h-full flex flex-col" >
43
- < div className = "px-6 py-3 bg-gray-50 border-b" >
44
- < h3 className = "text-sm font-medium text-gray-700" >
43
+ < div className = "px-6 py-3 bg-gray-50 border-b dark:bg-gray-700 dark:border-gray-700 " >
44
+ < h3 className = "text-sm font-medium text-gray-700 dark:text-gray-200 " >
45
45
{ savedProjects . length } saved project
46
46
{ savedProjects . length !== 1 ? "s" : "" }
47
47
</ h3 >
@@ -51,18 +51,18 @@ export function OpenDialog({ isOpen, onClose, savedProjects, onLoad, onDelete }:
51
51
{ savedProjects . map ( ( project ) => (
52
52
< div
53
53
key = { project . id }
54
- className = "group p-4 border border-gray-200 rounded-lg hover:border-blue-300 hover:bg-blue-50 transition-all duration-150"
54
+ className = "group p-4 border border-gray-200 rounded-lg hover:border-blue-300 hover:bg-blue-50 transition-all duration-150 dark:border-gray-700 dark:hover:border-blue-300 dark:hover:bg-blue-900/20 "
55
55
>
56
56
< div className = "flex items-start justify-between" >
57
57
< div className = "flex items-start space-x-3 flex-1 min-w-0" >
58
58
< div className = "flex-shrink-0 mt-1" >
59
59
< DocumentIcon className = "h-6 w-6 text-blue-500" />
60
60
</ div >
61
61
< div className = "flex-1 min-w-0" >
62
- < h4 className = "text-base font-semibold text-gray-900 truncate group-hover:text-blue-900" >
62
+ < h4 className = "text-base font-semibold text-gray-900 truncate group-hover:text-blue-900 dark:text-gray-200 dark:group-hover:text-blue-300 " >
63
63
{ project . name }
64
64
</ h4 >
65
- < div className = "mt-1 flex items-center space-x-2 text-sm text-gray-500" >
65
+ < div className = "mt-1 flex items-center space-x-2 text-sm text-gray-500 dark:text-gray-400 " >
66
66
< span > Saved on</ span >
67
67
< span className = "font-medium" >
68
68
{ new Date (
@@ -87,7 +87,7 @@ export function OpenDialog({ isOpen, onClose, savedProjects, onLoad, onDelete }:
87
87
</ div >
88
88
) }
89
89
< div className = "mt-2" >
90
- < p className = "text-xs text-gray-400 line-clamp-2" >
90
+ < p className = "text-xs text-gray-400 dark:text-gray-400 line-clamp-2" >
91
91
Query:{ " " }
92
92
{ project . queryText . length > 100
93
93
? project . queryText . substring ( 0 , 100 ) +
@@ -120,10 +120,10 @@ export function OpenDialog({ isOpen, onClose, savedProjects, onLoad, onDelete }:
120
120
) }
121
121
</ div >
122
122
123
- < div className = "px-6 py-4 bg-gray-50 border-t flex justify-end" >
123
+ < div className = "px-6 py-4 bg-gray-50 border-t flex justify-end dark:bg-gray-700 dark:border-gray-700 " >
124
124
< button
125
125
onClick = { onClose }
126
- className = "px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
126
+ className = "px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 dark:bg-gray-700 dark:text-gray-200 dark:border-gray-600 dark:hover:bg-gray-600 "
127
127
>
128
128
Cancel
129
129
</ button >
0 commit comments