NbSelect element width does not adapt correctly
See original GitHub issueIssue type
I’m submitting a … (check one with “x”)
- bug report
- feature request
Issue description
Current behavior: I have a row with two columns. While NbInput elements adapt properly to the column div, the NbSelect does not.
Screenshot:
Parent col bounds:
Expected behavior: The NbSelect element should adapt to the parent column div as the NbInput element does.
Related code: My template:
<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="form-group">
<nb-form-field>
<nb-select [formControl]="day" placeholder="Select Day" [selected]="'Today'"
[shape]="componentShape" [size]="componentSize" fullWidth>
<nb-option [value]="'Today'">Today</nb-option>
<nb-option [value]="'Tomorrow'">Tomorrow</nb-option>
</nb-select>
</nb-form-field>
</div>
</div>
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="form-group">
<nb-form-field>
<nb-icon nbPrefix icon="clock-outline" pack="eva"></nb-icon>
<input [formControl]="time" fullWidth nbInput type="text" placeholder="Enter time"
[status]="elementStatus(time)" [shape]="componentShape"
[nbAutocomplete]="timeAutocomplete" [fieldSize]="componentSize"/>
<nb-autocomplete #timeAutocomplete>
<nb-option *ngFor="let t of (filteredTimeOptions$ | async)" [value]="t">
{{ t }}
</nb-option>
</nb-autocomplete>
</nb-form-field>
</div>
</div>
</div>
Other information:
npm, node, OS, Browser
Node, npm: v13.6.0, 6.14.2
OS: macOS Catalina
Browser: Chrome
Angular, Nebular
"@angular/core": "~9.0.6",
"@nebular/theme": "^5.0.0",
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How can I centralize <nb-select> control - Stack Overflow
I'm trying to use <nb-select> . I couldn't centralize the control, once it as been inside another tag, <div class="input-group"> , ...
Read more >Configuration - Sphinx documentation
This file (containing Python code) is called the “build configuration file” and contains (almost) all configuration needed to customize Sphinx input and output ......
Read more >Gmsh 4.11.1
Embedded model entities and general mesh size fields (see Specifying mesh element sizes) are currently only supported by the “Delaunay” and “HXT” algorithms....
Read more >Analyzing RNA-seq data with DESeq2 - Bioconductor
The DESeq2 model internally corrects for library size, so transformed or normalized values such as counts scaled by library size should not ......
Read more >Vaccine Storage and Handling Toolkit | CDC
If the cold chain is not properly maintained, vaccine potency may be lost, ... An effective cold chain relies on three main elements:....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We’re experiencing the same problem. There is a
min-width: 13rem
on the.select-button
inside theng-select
that thefullWidth
directive doesn’t seem to override.The workaround was to remove that
min-width
manually:@katebatura That is not “fixed”, you are offering a workaround. The default style is broken and the theme itself should be fixed. You are expecting every person using the theme to find this issue and apply the workaround themselves?
What’s wrong with incorporating some version of my style edit into the theme itself?