Skip to content

Bug: Path breadcrumb alignment is off except last segment #14722

@foriequal0

Description

@foriequal0

Description

image
The last segment seems to be aligned while the previous segments aren't.

I think TextLineBounds = Full here makes all text alignment a little bit off, especially for non-latin languages:

<Setter Property="TextLineBounds" Value="Full" />

And I think this is why manual Padding adjustments are prevalent here and there:
https://github.com/search?q=repo%3Afiles-community%2FFiles%20padding&type=code
including the last segment of the path breadcrumb:

We might be able to utilize the typographic options.
https://blogs.windows.com/windowsdeveloper/2013/11/11/xaml-text-improvements-in-windows-8-1/
I believe that it would make the app more resilient to font-related alignment issues.

I think this is the right place to do:

<Style x:Key="App.Theme.BaseTextBlockStyle" TargetType="TextBlock">

Steps To Reproduce

  1. Navigate to some directories
  2. See path segments

Requirements

Baselines should be aligned.

Files Version

3.2.0.0

Windows Version

Windows 11, 23H2, 22631.3155

Log File

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions