Skip to content

Commit

Permalink
Limit label tree info length
Browse files Browse the repository at this point in the history
  • Loading branch information
lehecht committed Oct 15, 2024
1 parent ec08fe9 commit be31a6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
10 changes: 4 additions & 6 deletions resources/assets/js/projects/components/labelTreeListItem.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
<template>
<li class="list-group-item" @mouseenter="emitEnter">
<li class="list-group-item limit-text" @mouseenter="emitEnter">
<h4 class="list-group-item-heading">
<button v-if="editable" v-show="editing" type="button" class="btn btn-default btn-sm pull-right" title="Detach this label tree" @click="emitRemove"><i class="fa fa-trash"></i></button>
<a :href="url" v-text="tree.name"></a>
</h4>
<p v-if="tree.description" class="list-group-item-text limit-description" v-text="tree.description"></p>
<p v-if="tree.description" class="list-group-item-text" v-text="tree.description"></p>
</li>
</template>

<style>
.limit-description {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.limit-text {
word-wrap: break-word;
}
</style>

Expand Down
1 change: 1 addition & 0 deletions resources/assets/sass/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
.search-results {
list-style: none;
padding: 0;
word-wrap: break-word;

> li {
padding: 1.5em 0;
Expand Down
1 change: 1 addition & 0 deletions resources/assets/sass/bootstrap/_labels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ h3, .h3 {
.small.label {
font-size: 65%;
}
word-wrap: break-word;
}

0 comments on commit be31a6d

Please sign in to comment.