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

ShellBar : Screen title is truncated on resizing the screen to 200%. #9296

Open
1 task done
DikshaHub opened this issue Jun 25, 2024 · 4 comments
Open
1 task done
Labels
bug This issue is a bug in the code Medium Prio TOPIC P

Comments

@DikshaHub
Copy link

DikshaHub commented Jun 25, 2024

Describe the bug

When the screen zoomed in to 200%, the title gets truncated.

Isolated Example

https://stackblitz.com/edit/github-wcwdgu-f5wwkv?file=src%2FApp.tsx

Reproduction steps

  1. Open the isolated example.

  2. On the top right click on 'Open preview in new tab'. A new tab with UI will be opened with the isolated example. (https://githubwcwdguf5wwkv-tr3y--5173--dc4d7514.local-credentialless.webcontainer.io/ )

  3. Resize the screen to 200 %.

  4. The screen title "SAP New Project Here," gets truncated when screen zoomed in to 200%.

Expected Behaviour

Truncation should be avoided on resizing the screen to 200%.

Screenshots or Videos

image

UI5 Web Components for React Version

~1.29.0

UI5 Web Components Version

~1.24.0

Browser

Chrome

Operating System

Mac

Additional Context

No response

Relevant log output

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.
@DikshaHub DikshaHub added the bug This issue is a bug in the code label Jun 25, 2024
@DikshaHub DikshaHub changed the title ShellBar : Screen title is truncated on resizing the text to 200%. ShellBar : Screen title is truncated on resizing the screen to 200%. Jun 25, 2024
@Lukas742
Copy link
Collaborator

Hi @DikshaHub

Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.


Hi colleagues,
the issue is reproducible in this example of your documentation.

@Lukas742 Lukas742 transferred this issue from SAP/ui5-webcomponents-react Jun 25, 2024
@kineticjs
Copy link
Contributor

Hello@SAP/ui5-webcomponents-topic-p,

The issue is about undesired truncation of the ui5-shellbar title in the case when the overall space is small, but there is still some empty unused space on the side of the truncated title. For example, we see 7.5rem unused space taken from the "middle" container when it is empty.
Can we check if we can improve the handling of the available space?

@DikshaHub
Copy link
Author

DikshaHub commented Jun 26, 2024

Hi @kineticjs
Certainly! We can improve the handling of the available space.
Our requirement is to ensure that text around 30 characters long does not get truncated.

@DikshaHub
Copy link
Author

DikshaHub commented Jun 27, 2024

@kineticjs Text around 30 characters gets truncated when resized to 200%. Please advise on how to address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug in the code Medium Prio TOPIC P
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants