1616 b-button.px-2 ( :to ="link_prefix + '/' + previousPeriod() + '/' + subview" ,
1717 variant ="outline-dark" )
1818 icon( name ="arrow-left" )
19- b-select.px-2 ( :value ="periodLength" , :options ="['day', 'week', 'month']" ,
19+ b-select.pl-2.pr-3 ( :value ="periodLength" , :options ="['day', 'week', 'month']" ,
2020 @change ="(periodLength) => setDate(_date, periodLength)" )
2121 b-input-group-append
2222 b-button.px-2 ( :to ="link_prefix + '/' + nextPeriod() + '/' + subview" ,
3434 span.d-none.d-md-inline
3535 | Refresh
3636
37- aw-periodusage( :periodusage_arr ="periodusage" , @update ="setDate" )
37+ aw-periodusage.mt-2 ( :periodusage_arr ="periodusage" , @update ="setDate" )
3838
39- ul.row.nav.nav-tabs.mt-3.px-3
39+ ul.row.nav.nav-tabs.mt-4
4040 li.nav-item ( v-for ="view in views" )
4141 router-link.nav-link ( :to ="{ name: 'activity-view', params: {...$route.params, view_id: view.id}}" : class = "{'router-link-exact-active': currentView.id == view.id}" )
4242 h6 {{view.name}}
6363 h5 Options
6464
6565 div.row
66- div.col-lg-6
67- b-form-checkbox( v-model ="filterAFK" )
68- | Filter AFK
69- b-form-checkbox( v-model ="includeAudible" )
66+ div.col-md-6
67+ b-form-checkbox( v-model ="filterAFK" size ="sm" )
68+ | Exclude AFK time
69+ icon#filterAFKHelp ( name ="question-circle" style ="opacity: 0.4" )
70+ b-tooltip( target ="filterAFKHelp" v-b-tooltip.hover title ="Filter away time where the AFK watcher didn't detect any input." )
71+ b-form-checkbox( v-model ="includeAudible" : disabled= "!filterAFK" size ="sm" )
7072 | Count audible browser tab as active
73+ icon#includeAudibleHelp ( name ="question-circle" style ="opacity: 0.4" )
74+ b-tooltip( target ="includeAudibleHelp" v-b-tooltip.hover title ="If the active window is an audible browser tab, count as active. Requires a browser watcher." )
7175
72- div.col-lg-6
73- b-form-group( label ="Show/filter category" label-cols ="5" label-cols-lg ="4" )
74- b-form-select( v-model ="filterCategory" , :options ="categories" )
76+ div.col-md-6.mt-2.mt-md-0
77+ b-form-group( label ="Show category" label-cols ="5" label-cols-lg ="4" style = "font-size: 0.88em ")
78+ b-form-select( v-model ="filterCategory" , :options ="categories" size = "sm" )
7579
7680 aw-devonly
7781 b-btn( id ="load-demo" , @click ="load_demo" )
7882 | Load demo data
7983</template >
8084
8185<style lang="scss" scoped>
82- $buttoncolor : #ddd ;
83- $bordercolor : #ddd ;
86+ @import ' ../../style/globals' ;
8487
8588.nav {
86- border-bottom : 2 px solid $bordercolor ;
89+ border-bottom : 1 px solid $lightBorderColor ;
8790
8891 .nav-item {
89- margin-bottom : -2px ;
92+ margin-bottom : 0px ;
93+
94+ & :first-child {
95+ margin-left : 0 ;
96+ }
9097
9198 .nav-link {
92- background-color : $buttoncolor ;
93- margin : 0 0.2em 0 0.2em ;
94- padding : 0.4em 0.5em 0.1em 0.5em ;
95- border : 2px solid $bordercolor ;
96- border-bottom : none ;
97- border-radius : 0.5rem 0.5rem 0 0 ;
98- color : #111 !important ;
99+ // default bootstrap vertical padding was too high
100+ padding : 0.25rem 1rem ;
101+
102+ color : lighten (black , 40% );
99103 cursor : pointer ;
104+ border : none ;
100105
101106 & :hover {
102- background-color : #f8f8f8 ;
107+ color : black !important ;
108+ border-bottom : 3px solid lighten (black , 70% );
109+ border-radius : 0 ;
103110 }
104111
105112 & .router-link-exact-active {
106- background-color : #fff ;
107- color : #333 !important ;
113+ color : $activeHighlightColor !important ;
114+ border-bottom : 3px solid lighten ($activeHighlightColor , 15% );
115+ border-radius : 0 ;
116+
117+ // Does nothing for Verala Round
118+ font-weight : bold ;
108119
109120 & :hover {
110121 background-color : #fff ;
@@ -127,6 +138,7 @@ import 'vue-awesome/icons/plus';
127138import ' vue-awesome/icons/edit' ;
128139import ' vue-awesome/icons/times' ;
129140import ' vue-awesome/icons/save' ;
141+ import ' vue-awesome/icons/question-circle' ;
130142
131143export default {
132144 name: ' Activity' ,
0 commit comments