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

fix: make sure single select scales with content #357

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MaxPostema
Copy link
Contributor

@MaxPostema MaxPostema commented Apr 29, 2021

Note: i added some large texts to test for this problem
fixes: #356

Checklist

  • Functionality works & meets specifications
  • Code reviewed
  • Code unit/integration/system tested
  • User documentation updated
  • Clean commits
  • No warnings during install
  • Updated flow typing

@codecov
Copy link

codecov bot commented Apr 29, 2021

Codecov Report

Merging #357 (ef10726) into master (0f0aea5) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #357   +/-   ##
======================================
  Coverage    95.1%   95.1%           
======================================
  Files          21      21           
  Lines         592     592           
  Branches       58      58           
======================================
  Hits          563     563           
  Misses         24      24           
  Partials        5       5           
Flag Coverage Δ
unit 95.1% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ponents/field-types/SingleSelectFieldComponent.vue 100.0% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c32087...ef10726. Read the comment docs.

@fdlk
Copy link
Contributor

fdlk commented Apr 29, 2021

@fdlk fdlk self-assigned this Apr 29, 2021
Copy link
Contributor

@fdlk fdlk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is the way to go, the form-control class is useful.

<v-select v-model="localValue"
class="form-control"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That has nasty side-effects:
Schermafbeelding 2021-04-29 om 17 15 30 versus
Schermafbeelding 2021-04-29 om 17 16 51

@fdlk
Copy link
Contributor

fdlk commented Apr 29, 2021

See select2/select2#5964, they went for ellipsis to make the option smaller

@fdlk fdlk removed their assignment Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Single select with long text makes content unreachable
2 participants