简体   繁体   中英

How to text wrap to next line in Vuetify when class text-wrap not working?

I have cards that cut off words, moving them to a new line: 在此处输入图像描述

I tried to use class="text-wrap" , but it doesn't work:

  <div>
    <v-card max-width="1000" elevation="6">
      <div class="mb-8 text-wrap">
        <v-sheet dark color="grey darken-2" class="text-wrap">
          <v-card-title
            color="grey darken-2 white--text"
            class="d-block font-weight-regular text-wrap">
            {{ label }}
          </v-card-title>
        </v-sheet>
      </div>
    </v-card>
  </div>

Thanks to @Chin.Udara solution is: <v-card-title style="word-break: break-word"...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM