@@ -11,13 +11,10 @@ interface KeyboardShortcutProps {
11
11
function KeyboardShortcut ( props : KeyboardShortcutProps ) {
12
12
return (
13
13
< div
14
- className = "sm:flex-row flex-col flex items-start sm:items-center py-2"
15
- style = { {
16
- backgroundColor : props . isEven ? '#1e1e1e' : 'transparent' ,
17
- } }
14
+ className = { `flex flex-col items-start p-2 py-2 sm:flex-row sm:items-center ${ props . isEven ? "bg-list-active" : "" } ` }
18
15
>
19
- < div className = "flex-grow pr-4 pb-1 sm:pb-0 w-full sm:w-auto " >
20
- < span className = "text-xs block break-words" > { props . description } :</ span >
16
+ < div className = "w-full flex-grow pb-1 pr-4 sm:w-auto sm:pb-0 " >
17
+ < span className = "block break-words text-xs " > { props . description } :</ span >
21
18
</ div >
22
19
< div className = "flex-shrink-0 whitespace-nowrap" >
23
20
< Shortcut > { props . shortcut } </ Shortcut >
@@ -27,7 +24,7 @@ function KeyboardShortcut(props: KeyboardShortcutProps) {
27
24
}
28
25
29
26
// Shortcut strings will be rendered correctly based on the platform by the Shortcut component
30
- const vscodeShortcuts : Omit < KeyboardShortcutProps , ' isEven' > [ ] = [
27
+ const vscodeShortcuts : Omit < KeyboardShortcutProps , " isEven" > [ ] = [
31
28
{
32
29
shortcut : "cmd '" ,
33
30
description : "Toggle Selected Model" ,
@@ -84,7 +81,7 @@ const vscodeShortcuts: Omit<KeyboardShortcutProps, 'isEven'>[] = [
84
81
} ,
85
82
] ;
86
83
87
- const jetbrainsShortcuts : Omit < KeyboardShortcutProps , ' isEven' > [ ] = [
84
+ const jetbrainsShortcuts : Omit < KeyboardShortcutProps , " isEven" > [ ] = [
88
85
{
89
86
shortcut : "cmd '" ,
90
87
description : "Toggle Selected Model" ,
@@ -135,7 +132,7 @@ function KeyboardShortcuts() {
135
132
} , [ ] ) ;
136
133
137
134
return (
138
- < div className = "p-5 h-full overflow-auto" >
135
+ < div className = "h-full overflow-auto p-5 " >
139
136
< h3 className = "mb-5 text-xl" > Keyboard shortcuts</ h3 >
140
137
< div >
141
138
{ shortcuts . map ( ( shortcut , i ) => {
@@ -154,4 +151,3 @@ function KeyboardShortcuts() {
154
151
}
155
152
156
153
export default KeyboardShortcuts ;
157
-
0 commit comments