@@ -19,7 +19,7 @@ import { DesignerPageRibbon } from "./designerPageRibbon";
19
19
import { DesignerMainPane } from "./designerMainPane" ;
20
20
import { DesignerPropertiesPane } from "./designerPropertiesPane" ;
21
21
import { DesignerResultPane } from "./designerResultPane" ;
22
- import * as l10n from "@vscode/l10n " ;
22
+ import { locConstants } from "../../common/locConstants " ;
23
23
24
24
const useStyles = makeStyles ( {
25
25
root : {
@@ -109,17 +109,13 @@ export const TableDesigner = () => {
109
109
return null ;
110
110
}
111
111
112
- const ERROR_LOADING_DESIGNER = l10n . t ( "Error loading designer" ) ;
113
- const RETRY = l10n . t ( "Retry" ) ;
114
- const LOADING_TABLE_DESIGNER = l10n . t ( "Loading table designer" ) ;
115
-
116
112
return (
117
113
< div className = { classes . root } >
118
114
{ tableDesignerState . apiState ?. initializeState ===
119
115
designer . LoadState . Loading && (
120
116
< div className = { classes . pageContext } >
121
117
< Spinner
122
- label = { LOADING_TABLE_DESIGNER }
118
+ label = { locConstants . tableDesigner . loadingTableDesigner }
123
119
labelPosition = "below"
124
120
/>
125
121
</ div >
@@ -128,8 +124,10 @@ export const TableDesigner = () => {
128
124
designer . LoadState . Error && (
129
125
< div className = { classes . pageContext } >
130
126
< ErrorCircleRegular className = { classes . errorIcon } />
131
- < div > { ERROR_LOADING_DESIGNER } </ div >
132
- < Button className = { classes . retryButton } > { RETRY } </ Button >
127
+ < div > { locConstants . tableDesigner . errorLoadingDesigner } </ div >
128
+ < Button className = { classes . retryButton } >
129
+ { locConstants . tableDesigner . retry }
130
+ </ Button >
133
131
</ div >
134
132
) }
135
133
{ tableDesignerState . apiState ?. initializeState ===
@@ -150,10 +148,10 @@ export const TableDesigner = () => {
150
148
/>
151
149
{ state . state . propertiesPaneData && (
152
150
< ResizableBox
153
- width = { 350 }
151
+ width = { 500 }
154
152
height = { Infinity }
155
- maxConstraints = { [ 800 , Infinity ] }
156
- minConstraints = { [ 300 , Infinity ] }
153
+ maxConstraints = { [ Infinity , Infinity ] }
154
+ minConstraints = { [ 10 , Infinity ] }
157
155
resizeHandles = { [ "w" ] }
158
156
handle = {
159
157
< div
@@ -169,8 +167,8 @@ export const TableDesigner = () => {
169
167
< ResizableBox
170
168
width = { Infinity }
171
169
height = { 250 }
172
- maxConstraints = { [ Infinity , 400 ] }
173
- minConstraints = { [ Infinity , 200 ] }
170
+ maxConstraints = { [ Infinity , Infinity ] }
171
+ minConstraints = { [ Infinity , 10 ] }
174
172
resizeHandles = { [ "n" ] }
175
173
handle = { < div className = { classes . resultPaneHandle } /> }
176
174
className = { classes . resultPaneContainer }
0 commit comments