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

Bug: some buttons don't have enough space for translated text #1032

Open
myxmaster opened this issue Oct 24, 2024 · 2 comments
Open

Bug: some buttons don't have enough space for translated text #1032

myxmaster opened this issue Oct 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@myxmaster
Copy link

Sometimes it is not possible to find translations that are as short as the english text.
Button widths should be more tolerant or allow line break maybe?

Example for Payments ("Zahlungen" in German) -> create/pay invoice:
grafik

  • OS: Windows 10
  • Polar Version: 3.0.0
@myxmaster myxmaster added the bug Something isn't working label Oct 24, 2024
@kelvinator07
Copy link
Contributor

@myxmaster Thank you for reporting this bug. It will be reviewed and addressed in the coming days.

@kelvinator07
Copy link
Contributor

@jamaljsr I researched potential solutions for this issue, and here are three alternatives:

  1. Set the text font size to automatically adjust based on text length, with min-width and max-width for the button.
  2. Truncate the text if it doesn’t fully fit and add a tooltip on hover for the full text.
  3. Make the button responsive, allowing it to scale slightly in width or stack vertically to fit larger text strings.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants