Skip to content

Commit b03784c

Browse files
committed
ux: alignment and row height changes
Signed-off-by: leo <[email protected]>
1 parent 21005cb commit b03784c

File tree

2 files changed

+28
-26
lines changed

2 files changed

+28
-26
lines changed

src/Views/AddRemote.axaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,20 @@
4141
Margin="0,0,8,0"
4242
Text="{DynamicResource Text.SSHKey}"
4343
IsVisible="{Binding UseSSH}"/>
44-
<TextBox Grid.Row="2" Grid.Column="1"
45-
x:Name="TxtSshKey"
46-
Height="28"
47-
CornerRadius="3"
48-
IsVisible="{Binding UseSSH}"
49-
Watermark="{DynamicResource Text.SSHKey.Placeholder}"
50-
Text="{Binding SSHKey, Mode=TwoWay}">
51-
<TextBox.InnerRightContent>
52-
<Button Classes="icon_button" Width="30" Height="30" Click="SelectSSHKey">
53-
<Path Data="{StaticResource Icons.Folder.Open}" Fill="{DynamicResource Brush.FG1}"/>
54-
</Button>
55-
</TextBox.InnerRightContent>
56-
</TextBox>
44+
<Border Grid.Row="2" Grid.Column="1" Height="32" IsVisible="{Binding UseSSH}">
45+
<TextBox x:Name="TxtSshKey"
46+
Height="28"
47+
VerticalAlignment="Center"
48+
CornerRadius="3"
49+
Watermark="{DynamicResource Text.SSHKey.Placeholder}"
50+
Text="{Binding SSHKey, Mode=TwoWay}">
51+
<TextBox.InnerRightContent>
52+
<Button Classes="icon_button" Width="30" Height="30" Click="SelectSSHKey">
53+
<Path Data="{StaticResource Icons.Folder.Open}" Fill="{DynamicResource Brush.FG1}"/>
54+
</Button>
55+
</TextBox.InnerRightContent>
56+
</TextBox>
57+
</Border>
5758

5859
<CheckBox Grid.Row="3" Grid.Column="1"
5960
Content="{DynamicResource Text.Remote.PruneTagsOnFetch}"

src/Views/EditRemote.axaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,20 @@
4141
Margin="0,0,8,0"
4242
Text="{DynamicResource Text.SSHKey}"
4343
IsVisible="{Binding UseSSH}"/>
44-
<TextBox Grid.Row="2" Grid.Column="1"
45-
x:Name="TxtSshKey"
46-
Height="26"
47-
CornerRadius="3"
48-
IsVisible="{Binding UseSSH}"
49-
Watermark="{DynamicResource Text.SSHKey.Placeholder}"
50-
Text="{Binding SSHKey, Mode=TwoWay}">
51-
<TextBox.InnerRightContent>
52-
<Button Classes="icon_button" Width="30" Height="30" Click="SelectSSHKey">
53-
<Path Data="{StaticResource Icons.Folder.Open}" Fill="{DynamicResource Brush.FG1}"/>
54-
</Button>
55-
</TextBox.InnerRightContent>
56-
</TextBox>
44+
<Border Grid.Row="2" Grid.Column="1" Height="32" IsVisible="{Binding UseSSH}">
45+
<TextBox x:Name="TxtSshKey"
46+
Height="26"
47+
VerticalAlignment="Center"
48+
CornerRadius="3"
49+
Watermark="{DynamicResource Text.SSHKey.Placeholder}"
50+
Text="{Binding SSHKey, Mode=TwoWay}">
51+
<TextBox.InnerRightContent>
52+
<Button Classes="icon_button" Width="30" Height="30" Click="SelectSSHKey">
53+
<Path Data="{StaticResource Icons.Folder.Open}" Fill="{DynamicResource Brush.FG1}"/>
54+
</Button>
55+
</TextBox.InnerRightContent>
56+
</TextBox>
57+
</Border>
5758

5859
<CheckBox Grid.Row="3" Grid.Column="1"
5960
Content="{DynamicResource Text.Remote.PruneTagsOnFetch}"

0 commit comments

Comments
 (0)