@@ -356,7 +356,7 @@ public virtual async Task InitAsync(PluginInitContext context)
356
356
}
357
357
private static readonly Thickness settingControlMargin = new ( 10 , 4 , 10 , 4 ) ;
358
358
private static readonly Thickness settingPanelMargin = new ( 15 , 20 , 15 , 20 ) ;
359
- private static readonly Thickness settingTextBlockMargin = new ( - 10 , 0 , 0 , 0 ) ;
359
+ private static readonly Thickness settingTextBlockMargin = new ( 10 , 4 , 10 , 4 ) ;
360
360
private JsonRpcConfigurationModel _settingsTemplate ;
361
361
public Control CreateSettingPanel ( )
362
362
{
@@ -377,12 +377,13 @@ public Control CreateSettingPanel()
377
377
Orientation = Orientation . Horizontal ,
378
378
Margin = settingControlMargin
379
379
} ;
380
- var name = new Label ( )
380
+ var name = new TextBlock ( )
381
381
{
382
- Content = attribute . Label ,
383
- MinWidth = 0 ,
382
+ Text = attribute . Label ,
383
+ Width = 120 ,
384
384
VerticalAlignment = VerticalAlignment . Center ,
385
- Margin = settingControlMargin
385
+ Margin = settingControlMargin ,
386
+ TextWrapping = TextWrapping . WrapWithOverflow
386
387
} ;
387
388
388
389
FrameworkElement contentControl ;
@@ -395,7 +396,6 @@ public Control CreateSettingPanel()
395
396
{
396
397
Text = attribute . Description . Replace ( "\\ r\\ n" , "\r \n " ) ,
397
398
Margin = settingTextBlockMargin ,
398
- LineHeight = 20 ,
399
399
MaxWidth = 500 ,
400
400
TextWrapping = TextWrapping . WrapWithOverflow
401
401
} ;
0 commit comments