Skip to content

Commit a05f2bb

Browse files
committed
Adjust Control Aligment
1 parent 31ce34b commit a05f2bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public virtual async Task InitAsync(PluginInitContext context)
356356
}
357357
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);
359+
private static readonly Thickness settingTextBlockMargin = new(10, 4, 10, 4);
360360
private JsonRpcConfigurationModel _settingsTemplate;
361361
public Control CreateSettingPanel()
362362
{
@@ -377,12 +377,13 @@ public Control CreateSettingPanel()
377377
Orientation = Orientation.Horizontal,
378378
Margin = settingControlMargin
379379
};
380-
var name = new Label()
380+
var name = new TextBlock()
381381
{
382-
Content = attribute.Label,
383-
MinWidth = 0,
382+
Text = attribute.Label,
383+
Width = 120,
384384
VerticalAlignment = VerticalAlignment.Center,
385-
Margin = settingControlMargin
385+
Margin = settingControlMargin,
386+
TextWrapping = TextWrapping.WrapWithOverflow
386387
};
387388

388389
FrameworkElement contentControl;
@@ -395,7 +396,6 @@ public Control CreateSettingPanel()
395396
{
396397
Text = attribute.Description.Replace("\\r\\n", "\r\n"),
397398
Margin = settingTextBlockMargin,
398-
LineHeight = 20,
399399
MaxWidth = 500,
400400
TextWrapping = TextWrapping.WrapWithOverflow
401401
};

0 commit comments

Comments
 (0)