Skip to content

b-form-timepicker label text wrap #5525

@naletups

Description

@naletups

Describe the bug

Strange text wrap effects of the label inside the collapsed b-form-timepicker destroy clean alignment inside form "grid".

Find attached the picture. There should be plenty of space to place the content. However, the inner text of the displayed value "wraps" a blank space or something.
Screenshot at 2020-06-24 12-56-43

Without any input in the box, the spacing to the next b-form-row is as expected (same as from duration row below to next element afterwards). Switching to another locale, e.g. German, whose display is shorter removes the text wrap.

Setup

Around the timepicker component, there is a chain of b-form-group (with label-cols set), b-col, b-form-row and b-form. Is one of their settings polluting a setting in timepicker label?

Expected behavior

The highlighted area implies that there should be enough space to layout the text element?!

Versions

Libraries:

  • BootstrapVue: 2.15.0
  • Bootstrap: 4.5.0
  • Vue: 2.x

Environment:

  • Devices: Laptop, Mobile
  • Browser: Chromium, Firefox, Opera mini

QuickFix

For the moment, I fix it with a CSS deep selector, but I wanted to know if someone has a clue on the why it happens?

.textwrapfix >>> label.form-control {
  white-space: nowrap !important;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions