Skip to content
Snippets Groups Projects
Commit a4213fbf authored by Henrik Askjer's avatar Henrik Askjer
Browse files

adjust collapse

parent 8b82e25c
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@ export default {
})
if (new_string.substring(new_string.length, new_string.length - 1) == ":") {
new_string = new_string.slice(0, -1)+"..."
new_string = new_string.slice(0, -1)
}
definitionTexts.push(new_string)
......@@ -170,9 +170,6 @@ export default {
})
let definitions = definitionTexts.join(" | ")
if (definitions.length > 200) {
definitions = definitions.slice(0, 200).replace(new RegExp("\.\.\.$"), "");
}
return definitions
},
......@@ -305,7 +302,14 @@ ul li.definition {
.collapsed {
height: 150px;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.header {
}
</style>
......@@ -26,12 +26,9 @@
</span> <span v-if="$parent.collapsable" >
<v-btn class="expand_icon"
:title="$parent.collapsed? 'Vis mer' : 'Kollaps'"
width="100%"
width="100%"
plain
small
medium
@click="$parent.collapsed=!$parent.collapsed">
<v-icon small>{{$parent.collapsed ? 'expand_more': 'expand_less'}}</v-icon></v-btn></span>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment