From 900f24473b6706fa5b39956a5f00e5e760ab86b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20B=C3=A1lint=20Hunor?= Date: Mon, 12 Oct 2026 16:59:53 +0300 Subject: [PATCH] Fix single-line filename ellipsis in Details, Tiles and Columns Co-Authored-By: Codex Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq --- src/Files.App/Views/Layouts/ColumnLayoutPage.xaml | 3 ++- src/Files.App/Views/Layouts/DetailsLayoutPage.xaml | 5 ++++- src/Files.App/Views/Layouts/GridLayoutPage.xaml | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Files.App/Views/Layouts/ColumnLayoutPage.xaml b/src/Files.App/Views/Layouts/ColumnLayoutPage.xaml index 05287ebde5d2..ef853ffa8c52 100644 --- a/src/Files.App/Views/Layouts/ColumnLayoutPage.xaml +++ b/src/Files.App/Views/Layouts/ColumnLayoutPage.xaml @@ -300,6 +300,7 @@ VerticalAlignment="Center" Opacity="{x:Bind Opacity, Mode=OneWay}" Text="{x:Bind Name, Mode=OneWay}" + MaxLines="1" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap" /> @@ -312,7 +313,7 @@ VerticalAlignment="Stretch" BeforeTextChanging="ItemNameTextBox_BeforeTextChanging" TextAlignment="Left" - TextWrapping="Wrap" + TextWrapping="NoWrap" Visibility="Collapsed"> diff --git a/src/Files.App/Views/Layouts/DetailsLayoutPage.xaml b/src/Files.App/Views/Layouts/DetailsLayoutPage.xaml index 682efac7d645..1c9573c77990 100644 --- a/src/Files.App/Views/Layouts/DetailsLayoutPage.xaml +++ b/src/Files.App/Views/Layouts/DetailsLayoutPage.xaml @@ -1021,7 +1021,9 @@ VerticalAlignment="Center" Opacity="{x:Bind Opacity, Mode=OneWay}" Text="{x:Bind Name, Mode=OneWay}" - TextTrimming="CharacterEllipsis" /> + MaxLines="1" + TextTrimming="CharacterEllipsis" + TextWrapping="NoWrap" /> diff --git a/src/Files.App/Views/Layouts/GridLayoutPage.xaml b/src/Files.App/Views/Layouts/GridLayoutPage.xaml index efcd747fdd91..20125d9820cd 100644 --- a/src/Files.App/Views/Layouts/GridLayoutPage.xaml +++ b/src/Files.App/Views/Layouts/GridLayoutPage.xaml @@ -574,12 +574,12 @@ + TextWrapping="NoWrap" />