Skip to content

Commit

Permalink
perf: Help text automatic line wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
feng626 committed Oct 12, 2024
1 parent 2421e82 commit 5389f1d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
placement="right"
popper-class="help-tips"
>
<div slot="content" v-sanitize="data.helpTip" /> <!-- Noncompliant -->
<div slot="content" v-sanitize="data.helpTip" class="help-tip-content" /> <!-- Noncompliant -->
<i class="fa fa-question-circle-o help-tip-icon" />
</el-tooltip>
</template>
Expand Down Expand Up @@ -322,4 +322,9 @@ export default {
cursor: pointer;
}
}
.help-tip-content {
white-space: pre-wrap;
word-wrap: break-word;
}
</style>

0 comments on commit 5389f1d

Please sign in to comment.