@@ -354,8 +354,9 @@ 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 , 3 , 10 , 3 ) ;
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
360
private JsonRpcConfigurationModel _settingsTemplate ;
360
361
public Control CreateSettingPanel ( )
361
362
{
@@ -379,6 +380,7 @@ public Control CreateSettingPanel()
379
380
var name = new Label ( )
380
381
{
381
382
Content = attribute . Label ,
383
+ MinWidth = 0 ,
382
384
VerticalAlignment = VerticalAlignment . Center ,
383
385
Margin = settingControlMargin
384
386
} ;
@@ -392,7 +394,8 @@ public Control CreateSettingPanel()
392
394
contentControl = new TextBlock
393
395
{
394
396
Text = attribute . Description . Replace ( "\\ r\\ n" , "\r \n " ) ,
395
- Margin = settingControlMargin ,
397
+ Margin = settingTextBlockMargin ,
398
+ LineHeight = 20 ,
396
399
MaxWidth = 500 ,
397
400
TextWrapping = TextWrapping . WrapWithOverflow
398
401
} ;
0 commit comments