Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

Commit 7c39392

Browse files
Style fixes (#23)
1 parent 38a31b9 commit 7c39392

File tree

3 files changed

+26
-25
lines changed

3 files changed

+26
-25
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
yarn serve
2+
yarn start
33

44
build-docker-local:
55
docker build --build-arg BUILD_MODE=development --progress=plain -t calendar_ui:local .

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"serve": "vue-cli-service serve",
6+
"start": "vue-cli-service serve",
77
"build": "vue-cli-service build",
88
"lint": "vue-cli-service lint",
99
"serve:standalone": "vue-cli-service serve --mode standalone"

src/components/NavBar.vue

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
<template>
22
<header>
3-
<button
4-
v-if="this.$store.state.page"
5-
class="btn btn-primary date options"
6-
@click="
7-
() => {
8-
if (this.$store.state.page) showCalendar = !showCalendar;
9-
}
10-
"
11-
>
12-
{{ this.formatDate(this.date) }}
13-
<span v-if="!showCalendar" class="material-symbols-sharp">
14-
expand_more</span
15-
>
16-
<span v-else class="material-symbols-sharp"> expand_less </span>
17-
</button>
18-
<div v-else class="date">Твой ФФ!</div>
19-
<div
20-
v-if="showCalendar && this.$store.state.page"
21-
class="date-nav"
22-
v-click-outside="
3+
<div class="date" v-click-outside="
234
() => {
245
this.showCalendar = false;
256
}
26-
"
27-
>
28-
<DatePicker class="calendar" v-model="date" />
7+
">
8+
<button
9+
v-if="this.$store.state.page"
10+
class="btn btn-primary date options"
11+
@click="
12+
() => {
13+
if (this.$store.state.page) showCalendar = !showCalendar;
14+
}
15+
"
16+
>
17+
{{ this.formatDate(this.date) }}
18+
<span v-if="!showCalendar" class="material-symbols-sharp">
19+
expand_more
20+
</span>
21+
<span v-else class="material-symbols-sharp"> expand_less </span>
22+
</button>
23+
<div v-else class="date">Твой ФФ!</div>
24+
<div
25+
v-if="showCalendar && this.$store.state.page"
26+
class="date-nav"
27+
>
28+
<DatePicker class="calendar" v-model="date" />
29+
</div>
2930
</div>
3031
<button
3132
class="btn btn-primary options"

0 commit comments

Comments
 (0)