fix: Fixed the issue when the email address is too long and exceeds the scope of the StackPanel

This commit is contained in:
Gadfly 2024-04-30 21:50:30 +08:00
parent a5150edee0
commit 9c6798ef1b
No known key found for this signature in database
GPG key ID: 9128145F93CFC69C
2 changed files with 36 additions and 24 deletions

View file

@ -1,4 +1,5 @@
using Avalonia.Data.Converters;
using Avalonia.Controls;
using Avalonia.Data.Converters;
using Avalonia.Media;
namespace SourceGit.Converters
@ -10,5 +11,8 @@ namespace SourceGit.Converters
public static readonly FuncValueConverter<bool, FontWeight> BoldIfTrue =
new FuncValueConverter<bool, FontWeight>(x => x ? FontWeight.Bold : FontWeight.Regular);
public static readonly FuncValueConverter<bool, GridLength> BoolToStarOrAutoGridLength =
new(value => value ? new GridLength(1, GridUnitType.Star) : new GridLength(1, GridUnitType.Auto));
}
}