Skip to content

Open source personal finance application

ui: update category round

ilkomee2bdbf07f267
diff --git a/components/stat/Dashboard.vue b/components/stat/Dashboard.vue
index dd3a85e9..6ed6f29a 100644
--- a/components/stat/Dashboard.vue
+++ b/components/stat/Dashboard.vue
@@ -428,7 +428,7 @@ export default {
border-bottom 1px solid var(--c-bg-5)
&._mw
- max-width 480px
+ max-width 400px
margin-top 0
&._noBdMedia
diff --git a/components/stat/StatItem.vue b/components/stat/StatItem.vue
index 8997a206..a125d5eb 100644
--- a/components/stat/StatItem.vue
+++ b/components/stat/StatItem.vue
@@ -79,6 +79,7 @@ export default {
Icon(
:background="category.color"
:icon="category.icon"
+ round
)
.statItem__name {{ category.name }}
diff --git a/components/stat/StatItemRound.vue b/components/stat/StatItemRound.vue
index c699ecc2..af0bd833 100644
--- a/components/stat/StatItemRound.vue
+++ b/components/stat/StatItemRound.vue
@@ -88,9 +88,8 @@ export default {
)
.statItemRound__icon
Icon(
- :color="category.color"
:icon="category.icon"
- background="transparent"
+ :background="category.color"
round
)
@@ -106,18 +105,6 @@ export default {
)
</template>
-<style lang="stylus">
-.layout
- .statItemRound
- &__icon
- .icon
- width auto
- height auto
-
- .icon__image
- font-size 28px
-</style>
-
<style lang="stylus" scoped>
@import '~assets/stylus/variables'
diff --git a/components/trns/item/TrnItem.vue b/components/trns/item/TrnItem.vue
index 5d65ca61..65bc071b 100644
--- a/components/trns/item/TrnItem.vue
+++ b/components/trns/item/TrnItem.vue
@@ -139,9 +139,8 @@ export default {
.trnItem__left
.trnItem__categoryIcon
Icon(
- :background="category.color"
+ :color="category.color"
:icon="category.icon"
- round
)
.trnItem__center
@@ -232,8 +231,9 @@ export default {
.trnItem__left
.trnItem__categoryIcon
Icon(
- :background="category.color"
+ :color="category.color"
:icon="category.icon"
+ background="var(--c-bg-5)"
round
)