Skip to content

Commit 31ce34b

Browse files
committed
Adjust TextBlock Margin
1 parent a8331af commit 31ce34b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,9 @@ public virtual async Task InitAsync(PluginInitContext context)
354354
this.context = context;
355355
await InitSettingAsync();
356356
}
357-
private static readonly Thickness settingControlMargin = new(10, 3, 10, 3);
357+
private static readonly Thickness settingControlMargin = new(10, 4, 10, 4);
358358
private static readonly Thickness settingPanelMargin = new(15, 20, 15, 20);
359+
private static readonly Thickness settingTextBlockMargin = new(-10, 0, 0, 0);
359360
private JsonRpcConfigurationModel _settingsTemplate;
360361
public Control CreateSettingPanel()
361362
{
@@ -379,6 +380,7 @@ public Control CreateSettingPanel()
379380
var name = new Label()
380381
{
381382
Content = attribute.Label,
383+
MinWidth = 0,
382384
VerticalAlignment = VerticalAlignment.Center,
383385
Margin = settingControlMargin
384386
};
@@ -392,7 +394,8 @@ public Control CreateSettingPanel()
392394
contentControl = new TextBlock
393395
{
394396
Text = attribute.Description.Replace("\\r\\n", "\r\n"),
395-
Margin = settingControlMargin,
397+
Margin = settingTextBlockMargin,
398+
LineHeight = 20,
396399
MaxWidth = 500,
397400
TextWrapping = TextWrapping.WrapWithOverflow
398401
};

0 commit comments

Comments
 (0)