Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: changed sometimes missing unicode character to icon in CategoryTree
  • Loading branch information
ErikBjare committed Jul 29, 2020
1 parent 0036b48 commit 50b3258
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/visualizations/CategoryTree.vue
@@ -1,21 +1,15 @@
<template lang="pug">
div
div(v-for="cat in category_hierarchy", style="padding: 0.1em 0 0.1em 0")
span(:style="'padding-left: ' + cat.depth + 'em'")
span(v-if="cat.depth > 0")&nbsp;
span(:style="'padding-left: ' + (1.4 * cat.depth - 1) + 'em'")
span(v-if="cat.depth > 0", style="opacity: 0.7") #[icon.mr-1(name="caret-right")]
| {{cat.subname}}
span(style="float: right")
| {{cat.duration | friendlyduration}}
</template>

<style scoped lang="scss">
svg {
border: 1px solid #999;
border-radius: 0.5em;
}
</style>

<script>
import 'vue-awesome/icons/caret-right';
const _ = require('lodash');
const classes = require('~/util/classes.ts');
Expand Down

0 comments on commit 50b3258

Please sign in to comment.