Kesomannen / gale

The lightweight mod manager
https://kesomannen.com/gale
GNU General Public License v3.0
124 stars 12 forks source link

Fix paths rendering in right-to-left mode #113

Closed notpeelz closed 2 months ago

notpeelz commented 2 months ago

Fixes #100

image

U+200E is a left-to-right mark. This preserves the "truncate from the left" behavior from right-to-left rendering.

Explanation: https://stackoverflow.com/a/20799360/1581233

TianMengLucky commented 2 months ago

It seems to be intentional.

TianMengLucky commented 2 months ago

image Deleting the line achieves

notpeelz commented 2 months ago

Deleting the line achieves

That causes overflowing text to get truncated from the right.

TianMengLucky commented 2 months ago

Deleting the line achieves

That causes overflowing text to get truncated from the right.

Is there a picture?

notpeelz commented 2 months ago

RTL with Left-to-Right Mark: image

LTR: image

It's more noticeable in the config since there's less space to render long paths: image

notpeelz commented 2 months ago

Added another commit to keep the labels the same width. Not sure if there are other components that need this.

Before: image

After: image

Kesomannen commented 2 months ago

Looks good