@@ -354,7 +354,8 @@ public virtual async Task InitAsync(PluginInitContext context)
354
354
this . context = context ;
355
355
await InitSettingAsync ( ) ;
356
356
}
357
- private static readonly Thickness settingControlMargin = new ( 10 ) ;
357
+ private static readonly Thickness settingControlMargin = new ( 10 , 3 , 10 , 3 ) ;
358
+ private static readonly Thickness settingPanelMargin = new ( 15 , 20 , 15 , 20 ) ;
358
359
private JsonRpcConfigurationModel _settingsTemplate ;
359
360
public Control CreateSettingPanel ( )
360
361
{
@@ -363,7 +364,7 @@ public Control CreateSettingPanel()
363
364
var settingWindow = new UserControl ( ) ;
364
365
var mainPanel = new StackPanel
365
366
{
366
- Margin = settingControlMargin ,
367
+ Margin = settingPanelMargin ,
367
368
Orientation = Orientation . Vertical
368
369
} ;
369
370
settingWindow . Content = mainPanel ;
@@ -378,6 +379,7 @@ public Control CreateSettingPanel()
378
379
var name = new Label ( )
379
380
{
380
381
Content = attribute . Label ,
382
+ VerticalAlignment = VerticalAlignment . Center ,
381
383
Margin = settingControlMargin
382
384
} ;
383
385
@@ -391,7 +393,7 @@ public Control CreateSettingPanel()
391
393
{
392
394
Text = attribute . Description . Replace ( "\\ r\\ n" , "\r \n " ) ,
393
395
Margin = settingControlMargin ,
394
- MaxWidth = 400 ,
396
+ MaxWidth = 500 ,
395
397
TextWrapping = TextWrapping . WrapWithOverflow
396
398
} ;
397
399
break ;
0 commit comments