|
1 | 1 | <template lang="pug"> |
2 | 2 | div |
3 | | - h2 Activity for {{ periodReadable }} |
| 3 | + h3 Activity for {{ periodReadable }} |
4 | 4 |
|
5 | | - p |
| 5 | + div.mb-2 |
6 | 6 | | Host: {{ host }} |
7 | 7 | br |
8 | 8 | | Active time: {{ $store.state.activity.active.duration | friendlyduration }} |
9 | 9 |
|
10 | | - div.d-flex |
11 | | - div.p-1 |
| 10 | + div.mb-2.d-flex |
| 11 | + div |
12 | 12 | b-input-group |
13 | 13 | b-input-group-prepend |
14 | | - b-button(:to="link_prefix + '/' + previousPeriod() + '/' + subview", |
| 14 | + b-button.px-2(:to="link_prefix + '/' + previousPeriod() + '/' + subview", |
15 | 15 | variant="outline-dark") |
16 | 16 | icon(name="arrow-left") |
17 | 17 | //span.d-none.d-md-inline |
18 | 18 | // | Previous |
19 | | - b-select(:value="periodLength", :options="['day', 'week', 'month']", |
| 19 | + b-select.px-2(:value="periodLength", :options="['day', 'week', 'month']", |
20 | 20 | @change="(periodLength) => setDate(date, periodLength)") |
21 | 21 | b-input-group-append |
22 | | - b-button(:to="link_prefix + '/' + nextPeriod() + '/' + subview", |
| 22 | + b-button.px-2(:to="link_prefix + '/' + nextPeriod() + '/' + subview", |
23 | 23 | :disabled="nextPeriod() > today", variant="outline-dark") |
24 | 24 | //span.d-none.d-md-inline |
25 | 25 | // | Next |
26 | 26 | icon(name="arrow-right") |
27 | 27 |
|
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" |
30 | 30 | @change="setDate($event.target.value, periodLength)") |
31 | 31 |
|
32 | | - div.p-1.ml-auto |
| 32 | + div.ml-auto |
33 | 33 | b-button-group |
34 | | - b-button(@click="refresh(true)", variant="outline-dark") |
| 34 | + b-button.px-2(@click="refresh(true)", variant="outline-dark") |
35 | 35 | icon(name="sync") |
36 | 36 | span.d-none.d-md-inline |
37 | 37 | | Refresh |
|
0 commit comments