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

[Bug Report] v-card-title long text bug #7730

Closed
menthos984 opened this issue Jul 3, 2019 · 5 comments
Closed

[Bug Report] v-card-title long text bug #7730

menthos984 opened this issue Jul 3, 2019 · 5 comments
Labels
C: VCard VCard has workaround T: bug Functionality that does not work as intended/expected
Milestone

Comments

@menthos984
Copy link

Versions and Environment

Vuetify: 1.5.16
Vue: 2.6.10
Browsers: Chrome 75.0.3770.100
OS: Mac OS 10.14.5

Steps to reproduce

add long 1 word text like Supercalifragilisticexpialidocious

Expected Behavior

Long texts should be automatically put to a newline

Actual Behavior

Long texts triggers an overflow of text out the card

Reproduction Link

https://codepen.io/menthos984/pen/bPMmbP?&editable=true&editors=101

@ghost ghost added the S: triage label Jul 3, 2019
@Mikilll94
Copy link
Contributor

Looks bad only on small screen size.

@jacekkarczmarczyk
Copy link
Member

workaround: add style="word-break: break-all" to v-card-title

@dsseng
Copy link
Contributor

dsseng commented Jul 10, 2019

image
image
just max-width: 100% on internal div

@johnleider johnleider added C: VCard VCard T: bug Functionality that does not work as intended/expected and removed S: triage labels Jul 29, 2019
@johnleider johnleider added this to the v2.x.x milestone Jul 29, 2019
avengerweb added a commit to avengerweb/vuetify that referenced this issue Aug 8, 2019
@gregveres
Copy link

@avengerweb I really don't think this is a good approach to the fix. There is a trade off. I was just about to create a defect saying that by default v-card-title breaks lines mid-word, which is, in my opinion, is way worse than the example in this bug.

I am using v-card in a dialog and with a long dailog title on small screens, I am seeing a title like this:

Select the membership T
ype

When I would have expected it to be:

Select the membership
Type

It seems like an odd default to use break-all instead of break-word.

@avengerweb
Copy link
Contributor

@gregveres yes I think about it, and I think u are right we should rollback this part, coz long words rare case compare to long title that looks very bad. @johnleider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VCard VCard has workaround T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

7 participants