1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-17 08:43:21 +00:00

layout fixes

This commit is contained in:
Kyle Spearrin
2016-12-26 11:30:57 -05:00
parent 17e18a2a7a
commit 7728046309
2 changed files with 4 additions and 3 deletions

View File

@@ -135,12 +135,12 @@ namespace Bit.App.Pages
{ {
ColumnSpacing = 15, ColumnSpacing = 15,
RowSpacing = 0, RowSpacing = 0,
Padding = new Thickness(15, 25) Padding = new Thickness(15, 20)
}; };
grid.AdjustPaddingForDevice(); grid.AdjustPaddingForDevice();
grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Auto) }); grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Auto) });
grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }); grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Auto) });
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(44, GridUnitType.Absolute) }); grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(44, GridUnitType.Absolute) });
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) });
grid.Children.Add(image, 0, 0); grid.Children.Add(image, 0, 0);

View File

@@ -487,7 +487,8 @@ namespace Bit.App.Pages
var label = new Label var label = new Label
{ {
FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Label)), FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Label)),
Style = (Style)Application.Current.Resources["text-muted"] Style = (Style)Application.Current.Resources["text-muted"],
VerticalTextAlignment = TextAlignment.Center
}; };
label.SetBinding<VaultListPageModel.Folder>(Label.TextProperty, s => s.Name); label.SetBinding<VaultListPageModel.Folder>(Label.TextProperty, s => s.Name);