@@ -47,7 +47,7 @@ function LMPDetailsSidePanel({ lmp, uses, versionHistory }) {
47
47
< div className = "space-y-4" >
48
48
< div className = "bg-[#161b22] p-3 rounded" >
49
49
< div className = "flex justify-between items-center mb-2" >
50
- < h3 className = "text-sm font-semibold text-white" > Version</ h3 >
50
+ < h3 className = "text-md font-semibold text-white" > Version</ h3 >
51
51
< VersionBadge version = { lmp . version_number + 1 } hash = { lmp . lmp_id } />
52
52
</ div >
53
53
< StatItem icon = { FiClock } label = "Created" value = { getTimeAgo ( new Date ( lmp . created_at ) ) } />
@@ -58,15 +58,15 @@ function LMPDetailsSidePanel({ lmp, uses, versionHistory }) {
58
58
59
59
{ lmp . lm_kwargs && (
60
60
< div className = "bg-[#161b22] p-3 rounded" >
61
- < h3 className = "text-sm font-semibold mb-2 text-white" > LM Keywords</ h3 >
61
+ < h3 className = "text-md font-semibold mb-2 text-white" > LM Keywords</ h3 >
62
62
< pre className = "overflow-x-auto text-xs text-gray-300" >
63
63
< code > { JSON . stringify ( lmp . lm_kwargs , null , 2 ) } </ code >
64
64
</ pre >
65
65
</ div >
66
66
) }
67
67
68
68
< div className = "bg-[#161b22] p-3 rounded" >
69
- < h3 className = "text-sm font-semibold mb-2 text-white" > Uses</ h3 >
69
+ < h3 className = "text-md font-semibold mb-2 text-white" > Uses</ h3 >
70
70
{ uses && uses . length > 0 ? (
71
71
< ul className = "space-y-1" >
72
72
{ uses . filter ( use => ! ! use ) . map ( ( use ) => (
@@ -101,19 +101,33 @@ function LMPDetailsSidePanel({ lmp, uses, versionHistory }) {
101
101
102
102
< div className = "bg-[#161b22] p-3 rounded" >
103
103
< h3 className = "text-sm font-semibold mb-2 text-white" > Version History</ h3 >
104
- < div className = "space-y-1 max-h-48 overflow-y-auto" >
104
+ < div className = "space-y-2 max-h-48 overflow-y-auto" >
105
105
{ versionHistory . map ( ( version , index ) => (
106
106
< Link
107
107
key = { version . lmp_id }
108
108
to = { `/lmp/${ version . name } /${ version . lmp_id } ` }
109
- className = { `block text-xs ${ version . lmp_id === lmp . lmp_id ? 'text-blue-400 font-semibold' : 'text-gray-400' } hover:text-white` }
109
+ className = { `block p-2 rounded ${
110
+ version . lmp_id === lmp . lmp_id
111
+ ? 'bg-blue-900 bg-opacity-30'
112
+ : 'hover:bg-gray-800'
113
+ } `}
110
114
>
111
- < div className = "flex justify-between items-center" >
112
- < span > v{ versionHistory . length - index } </ span >
113
- < span > { getTimeAgo ( new Date ( version . created_at ) ) } </ span >
115
+ < div className = "flex justify-between items-center text-sm" >
116
+ < span className = { `font-semibold ${
117
+ version . lmp_id === lmp . lmp_id ? 'text-blue-400' : 'text-white'
118
+ } `} >
119
+ v{ versionHistory . length - index }
120
+ </ span >
121
+ < span className = "text-gray-400 text-xs" >
122
+ < FiCalendar className = "inline mr-1" size = { 12 } />
123
+ { format ( new Date ( version . created_at ) , 'MMM d, yyyy' ) }
124
+ </ span >
114
125
</ div >
115
126
{ version . commit_message && (
116
- < p className = "text-gray-500 truncate" > { version . commit_message } </ p >
127
+ < p className = "text-gray-400 text-xs mt-1 truncate" >
128
+ < FiGitCommit className = "inline mr-1" size = { 12 } />
129
+ { version . commit_message }
130
+ </ p >
117
131
) }
118
132
</ Link >
119
133
) ) }
0 commit comments