Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Increased the text box height when renaming items in the tiles layout #13114

Merged
merged 14 commits into from
Sep 21, 2023
6 changes: 5 additions & 1 deletion src/Files.App/Views/LayoutModes/GridViewBrowser.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,13 @@
<TextBox
x:Name="TileViewTextBoxItemName"
Grid.Row="0"
HorizontalAlignment="Left"
Grid.RowSpan="3"
MaxHeight="60"
HorizontalAlignment="Stretch"
BeforeTextChanging="ItemNameTextBox_BeforeTextChanging"
Canvas.ZIndex="1"
Text="{x:Bind Name, Mode=OneWay}"
TextWrapping="Wrap"
Visibility="Collapsed" />

<TextBlock
Expand Down
4 changes: 1 addition & 3 deletions src/Files.App/Views/LayoutModes/GridViewBrowser.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Licensed under the MIT License. See the LICENSE.

using CommunityToolkit.WinUI.UI;
using Files.App.Data.Commands;
using Files.App.Data.EventArguments;
using Files.App.UserControls.Selection;
using Microsoft.UI.Input;
using Microsoft.UI.Xaml;
Expand Down Expand Up @@ -531,4 +529,4 @@ private void UpdateCheckboxVisibility(object sender, bool isPointerOver)
}

}
}
}