Skip to content

Commit 294660b

Browse files
committed
時間割がない場合の表示を調整
1 parent 0e2913b commit 294660b

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed

src/layouts/classes.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</template>
1919
</v-app-bar>
2020
<v-content class="content">
21-
<v-container class="px-4 py-8">
21+
<v-container class="classes-container px-4 py-8">
2222
<nuxt />
2323
</v-container>
2424
</v-content>
@@ -90,4 +90,7 @@ export default Vue.extend({
9090
max-width: 640px;
9191
height: 40px;
9292
}
93+
.classes-container {
94+
height: 100%;
95+
}
9396
</style>

src/pages/classes/index.vue

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
<div v-if="classData.getLessonsByDisplayDate.length">
44
<period-card :class-data="classData" />
55
</div>
6-
<v-row v-else-if="today" class="DataBlock">
7-
<h1 style="color: white; width: 100vw; text-align: center;">
6+
<div v-else-if="today" class="Classes-Outer">
7+
<h1 class="Classes-Title">
88
今日の時間割はまだ届いていないみたいです
99
</h1>
10-
</v-row>
11-
<v-row v-else class="DataBlock">
12-
<h1 style="color: white; width: 100vw; text-align: center;">
10+
</div>
11+
<div v-else class="Classes-Outer">
12+
<h1 class="Classes-Title">
1313
{{ dateTitle }} の時間割はまだ届いていないみたいです
1414
</h1>
15-
</v-row>
15+
</div>
1616
</div>
1717
</template>
1818

@@ -55,14 +55,19 @@ export default Vue.extend({
5555

5656
<style lang="scss" scoped>
5757
.MainPage {
58-
.Logo {
59-
text-align: center;
60-
}
61-
.DataBlock {
62-
margin: 0 -12px;
63-
.studycard {
64-
margin-bottom: 20px;
65-
}
66-
}
58+
display: flex;
59+
flex-direction: column;
60+
height: 100%;
61+
}
62+
.Classes-Outer {
63+
display: flex;
64+
align-items: center;
65+
justify-content: center;
66+
flex: 1 0 auto;
67+
}
68+
.Classes-Title {
69+
font-size: 21px;
70+
font-weight: normal;
71+
color: $color-white;
6772
}
6873
</style>

0 commit comments

Comments
 (0)