Skip to content

Commit

Permalink
#2249 Bug-fix in tooltip (#2327)
Browse files Browse the repository at this point in the history
* add ellipsis style to the tooltip content

* update comment
  • Loading branch information
SebinSong authored Sep 7, 2024
1 parent 41c1953 commit 41ff6b7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions frontend/views/containers/dashboard/SentenceWithMemberTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ component(
slot

template(v-if='members && members.length' slot='tooltip')
div(
.c-member-name(
v-for='(name, index) in members'
:key='`member-${index}`'
) {{ name }}
)
.has-ellipsis {{ name }}
</template>

<script>
Expand All @@ -36,4 +37,12 @@ export default ({
.has-zero-members ::v-deep .c-tooltip {
display: none !important;
}
.c-member-name {
// Turn the parent element into flex-box to render ellipsis style properly.
position: relative;
display: flex;
flex-direction: column;
align-items: stretch;
}
</style>

0 comments on commit 41ff6b7

Please sign in to comment.