floating-vue icon indicating copy to clipboard operation
floating-vue copied to clipboard

Set max width of tooltip component

Open matthewknill opened this issue 2 years ago • 4 comments

After almost an hour of scouring the docs, I can't seem to find out how to set the max width of the tooltip (i.e. I don't want the size to exceed 100px by wrapping the text). image

The following is what I have for my help icon:

<FontAwesomeIcon v-tooltip="'This is a really long tooltip for demonstrative purposes'" style="color: grey" :icon="['far', 'question-circle']" />

Any help would be much appreciated...

matthewknill avatar Jul 08 '23 04:07 matthewknill

Check this for your request https://github.com/Akryum/floating-vue/issues/175#issuecomment-998940556 This should solve your issue for now :)

4ddev avatar Jul 19 '23 09:07 4ddev

Try

<style>
.v-popper__inner {
  max-width: 100px;
}
</style>

leshkin avatar Jun 05 '24 14:06 leshkin

Why is this not available as a props ? Like so: <div v-tooltip="{ content: 'my tooltip', distance: 8, maxWidth: 300 }">

mrleblanc101 avatar Aug 05 '24 18:08 mrleblanc101