Skip to content

Weird toolbar behavior with large bim-tab namesΒ #54

@pstowasser01

Description

@pstowasser01

Describe the bug πŸ“

When I'm using the "new" bim-tabs with larger tab names, the buttons inside the toolbar are not centered anymore.
The toolbar just uses the width of the "switcher" element and still has all rounded corners, resulting in a weird gab between elements

Scenario: if toolbar is larger than the "switcher" element:
image

And if the toolbar (content of toolbar) is smaller than the "switcher" element:
image

Reproduction ▢️

No response

Steps to reproduce πŸ”’

Create a new toolbar or change the label of an existing toolbar to exceed the width of the toolbar content

System Info πŸ’»

"@thatopen/components": "^2.3.19",
"@thatopen/components-front": "^2.3.14",
"@thatopen/fragments": "^2.3.0",
"@thatopen/ui": "^2.3.2",
"@thatopen/ui-obc": "^2.3.5",

Is also testable in the template repo with ~2.2.0 versions

Used Package Manager πŸ“¦

npm

Error Trace/Logs πŸ“ƒ

No response

Validations βœ…

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
  • Check that this is a concrete bug. For Q&A join our Community.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions