Skip to content

Commit 3dc3615

Browse files
committed
improvement(design): further fixes to design on small screens, added links to watchers page in the docs whenmissing browser or editor buckets
1 parent 06ccbbe commit 3dc3615

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

src/views/activity/Activity.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
<template lang="pug">
22
div
3-
h2 Activity for {{ periodReadable }}
3+
h3 Activity for {{ periodReadable }}
44

5-
p
5+
div.mb-2
66
| Host: {{ host }}
77
br
88
| Active time: {{ $store.state.activity.active.duration | friendlyduration }}
99

10-
div.d-flex
11-
div.p-1
10+
div.mb-2.d-flex
11+
div
1212
b-input-group
1313
b-input-group-prepend
14-
b-button(:to="link_prefix + '/' + previousPeriod() + '/' + subview",
14+
b-button.px-2(:to="link_prefix + '/' + previousPeriod() + '/' + subview",
1515
variant="outline-dark")
1616
icon(name="arrow-left")
1717
//span.d-none.d-md-inline
1818
// | Previous
19-
b-select(:value="periodLength", :options="['day', 'week', 'month']",
19+
b-select.px-2(:value="periodLength", :options="['day', 'week', 'month']",
2020
@change="(periodLength) => setDate(date, periodLength)")
2121
b-input-group-append
22-
b-button(:to="link_prefix + '/' + nextPeriod() + '/' + subview",
22+
b-button.px-2(:to="link_prefix + '/' + nextPeriod() + '/' + subview",
2323
:disabled="nextPeriod() > today", variant="outline-dark")
2424
//span.d-none.d-md-inline
2525
// | Next
2626
icon(name="arrow-right")
2727

28-
div.p-1(v-if="periodLength === 'day'")
29-
input.form-control(id="date" type="date" :value="date" :max="today"
28+
div.mx-1(v-if="periodLength === 'day'")
29+
input.form-control.px-2(id="date" type="date" :value="date" :max="today"
3030
@change="setDate($event.target.value, periodLength)")
3131

32-
div.p-1.ml-auto
32+
div.ml-auto
3333
b-button-group
34-
b-button(@click="refresh(true)", variant="outline-dark")
34+
b-button.px-2(@click="refresh(true)", variant="outline-dark")
3535
icon(name="sync")
3636
span.d-none.d-md-inline
3737
| Refresh

src/views/activity/ActivityBrowser.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<template lang="pug">
2-
div
2+
div.mt-3
33
// TODO: Add back option to select a specific browser bucket
44
div(v-if="browserBuckets.length <= 0")
55
h6 No browser buckets available
6-
small Make sure you have a browser watcher installed to use this feature
7-
div(v-if="browserBuckets.length > 0")
6+
small
7+
| This feature requires a browser watcher.
8+
| You can find a list of all watchers in #[a(href="https://activitywatch.readthedocs.io/en/latest/watchers.html") the documentation].
89

10+
div(v-if="browserBuckets.length > 0")
911
h6 Active browser time: {{ $store.state.activity.browser.duration | friendlyduration }}
1012

1113
div.row

src/views/activity/ActivityEditor.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<template lang="pug">
2-
div
2+
div.mt-3
33
// TODO: Add back option to choose a specific editor bucket
44
div(v-if="editorBuckets.length <= 0")
55
h6 No editor buckets available
6-
small Make sure you have an editor watcher installed to use this feature
6+
small
7+
| This feature requires a editor watcher.
8+
| You can find a list of editor watchers in #[a(href="https://activitywatch.readthedocs.io/en/latest/watchers.html") the documentation].
9+
710
div(v-if="editorBuckets.length")
811
h6 Active editor time: {{ $store.state.activity.editor.duration | friendlyduration }}
912
div.row(style="padding-top: 0.5em;")

src/views/activity/ActivityWindow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template lang="pug">
2-
div
2+
div.mt-3
33
div.row.mb-6
44
div.col-md-6
55
h5 Top Applications

0 commit comments

Comments
 (0)