File tree 7 files changed +10
-3
lines changed 7 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ field-titleTranslation=Title Translation
155
155
field-abstractTranslation= Abstract Translation
156
156
157
157
status-translating= Translating...
158
-
158
+ sideBarIcon-title= Translate Annotation
159
159
160
160
service-libretranslate= LibreTranslate
161
161
service-libretranslate-secret-pass= Config
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ field-titleTranslation=Traduzione del titolo
129
129
field-abstractTranslation= Traduzione dell'Abstract
130
130
131
131
status-translating= Traduzione in corso...
132
+ sideBarIcon-title= Translate Annotation
132
133
133
134
service-libretranslate= LibreTranslate
134
135
service-libretranslate-secret-pass= Configura
Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ field-titleTranslation=标题翻译
154
154
field-abstractTranslation= 摘要翻译
155
155
156
156
status-translating= 正在翻译...
157
+ sideBarIcon-title= 翻译注释
157
158
158
159
service-libretranslate= LibreTranslate
159
160
service-libretranslate-secret-pass= 配置
Original file line number Diff line number Diff line change 1
1
import { config } from "../../package.json" ;
2
2
import { SVGIcon } from "../utils/config" ;
3
3
import { addTranslateAnnotationTask } from "../utils/task" ;
4
+ import { getString } from "../utils/locale" ;
4
5
5
6
export function registerReaderInitializer ( ) {
6
7
Zotero . Reader . registerEventListener (
@@ -24,6 +25,7 @@ export function registerReaderInitializer() {
24
25
classList : [ "icon" ] ,
25
26
properties : {
26
27
innerHTML : SVGIcon ,
28
+ title : getString ( "sideBarIcon-title" ) ,
27
29
} ,
28
30
listeners : [
29
31
{
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export async function claudeStatusCallback(status: boolean) {
120
120
} ,
121
121
} ,
122
122
{
123
- tag : "input " ,
123
+ tag : "textarea " ,
124
124
id : "prompt" ,
125
125
attributes : {
126
126
"data-bind" : "prompt" ,
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ async function gptStatusCallback(
29
29
gridTemplateColumns : "1fr 4fr" ,
30
30
rowGap : "10px" ,
31
31
columnGap : "5px" ,
32
+ minWidth : "400px" ,
33
+ minHeight : "200px" ,
32
34
} ,
33
35
children : [
34
36
{
@@ -131,7 +133,7 @@ async function gptStatusCallback(
131
133
} ,
132
134
} ,
133
135
{
134
- tag : "input " ,
136
+ tag : "textarea " ,
135
137
id : "prompt" ,
136
138
attributes : {
137
139
"data-bind" : "prompt" ,
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export type FluentMessageId =
19
19
| 'itemPaneSection-header'
20
20
| 'itemPaneSection-openStandalone'
21
21
| 'itemPaneSection-sidenav'
22
+ | 'sideBarIcon-title'
22
23
| 'itemmenu-more-label'
23
24
| 'itemmenu-retranslateAbstract-label'
24
25
| 'itemmenu-retranslateTitle-label'
You can’t perform that action at this time.
0 commit comments