Skip to content

Open source personal finance application

ui: update dates arrow

ilkome81fd2a1ea104
diff --git a/components/stat/DashboardDatesArrows.vue b/components/stat/DashboardDatesArrows.vue
index c8d20297..95fc6eae 100644
--- a/components/stat/DashboardDatesArrows.vue
+++ b/components/stat/DashboardDatesArrows.vue
@@ -5,26 +5,25 @@ export default {
<template lang="pug">
div
- .tabItem._left(
+ .arrowDate._left(
:class="{ _disable: $store.state.filter.period === 'all' || $store.getters['stat/isLastPeriodSelected'] }"
@click="$store.dispatch('filter/setPeriodNext')"
)
svg(width="24" height="24" fill="currentColor")
path(d="M17.171 2.937a1.5 1.5 0 0 0-2.343-1.874l2.343 1.874zM8 12l-1.171-.937a1.5 1.5 0 0 0 0 1.874L8 12zm6.829 10.937a1.5 1.5 0 0 0 2.343-1.874l-2.343 1.874zm0-21.874l-8 10 2.343 1.874 8-10-2.343-1.874zm-8 11.874l8 10 2.343-1.874-8-10-2.343 1.874z")
- .tabItem._right(
+ .arrowDate._right(
:class="{ _disable: $store.state.filter.period === 'all' || $store.getters['stat/isFirstPeriodSelected'] }"
@click="$store.dispatch('filter/setPeriodPrev')"
)
svg(width="24" height="24" fill="currentColor")
path(d="M17.171 2.937a1.5 1.5 0 0 0-2.343-1.874l2.343 1.874zM8 12l-1.171-.937a1.5 1.5 0 0 0 0 1.874L8 12zm6.829 10.937a1.5 1.5 0 0 0 2.343-1.874l-2.343 1.874zm0-21.874l-8 10 2.343 1.874 8-10-2.343-1.874zm-8 11.874l8 10 2.343-1.874-8-10-2.343 1.874z")
-
</template>
<style lang="stylus" scoped>
@import '~assets/stylus/variables'
-.tabItem
+.arrowDate
z-index 50
cursor pointer
position absolute
@@ -49,29 +48,30 @@ div
background var(--c-blue-1)
&._disable
+ visibility hidden
opacity 0
&._left
left 0px
justify-content flex-start
- border-radius 0 32px 32px 0
+ border-radius 0 8px 8px 0
+media(950px)
left 16px
justify-content center
- border-radius 32px
+ border-radius 8px
&._right
right 0px
justify-content flex-end
padding-right 4px
- border-radius 32px 0 0 32px
+ border-radius 8px 0 0 8px
+media(950px)
right 16px
justify-content center
padding-left 4px
- border-radius 32px
+ border-radius 8px
svg
transform rotate(180deg)