Skip to content

Commit 9b93879

Browse files
committed
feat: added 'show less' button to the summary visualization
1 parent b5a4f38 commit 9b93879

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/visualizations/Summary.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<template lang="pug">
22
div
33
div.aw-summary-container
4-
b-button.mt-1(v-if="fields && fields.length > 0 && with_limit && fields.length > limit_", size="sm", variant="outline-secondary", @click="limit_ += 5")
5-
icon(name="angle-double-down")
6-
| Show more
4+
div(v-if="fields && fields.length > 0 && with_limit && fields.length > limit_")
5+
b-button.mt-1(size="sm", variant="outline-secondary", @click="limit_ += 5")
6+
icon(name="angle-double-down")
7+
| Show more
8+
b-button.ml-2.mt-1(v-if="limit_ != limit" size="sm", variant="outline-secondary", @click="limit_ = limit")
9+
icon(name="angle-double-up")
710
</template>
811

912
<style scoped lang="scss">
@@ -19,6 +22,7 @@ div
1922
2023
import summary from './summary.js';
2124
import 'vue-awesome/icons/angle-double-down';
25+
import 'vue-awesome/icons/angle-double-up';
2226
2327
export default {
2428
name: 'aw-summary',

0 commit comments

Comments
 (0)