Skip to content

Commit

Permalink
fix:index-page
Browse files Browse the repository at this point in the history
  • Loading branch information
yamanoku committed Apr 2, 2020
1 parent 809a76e commit 10a71f6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 29 deletions.
40 changes: 12 additions & 28 deletions components/WhatsNew.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@
</a>
</li>
</ul>
</div>
<div class="WhatsNew-expander" alt="すべて見る" @click="onExpand">
<v-icon size="24">
mdi-chevron-down
</v-icon>
<nuxt-link class="WhatsNew-archive" :to="localePath('/news')">
{{ $t('過去のお知らせを見る') }}
</nuxt-link>
</div>
</div>
</template>
Expand All @@ -62,9 +60,6 @@ export default Vue.extend({
methods: {
isInternalLink(path: string) {
return !/^https?:\/\//.test(path)
},
onExpand() {
this.expanded = !this.expanded
}
}
})
Expand All @@ -74,16 +69,11 @@ export default Vue.extend({
.WhatsNew {
@include card-container();
margin-bottom: 20px;
position: relative;
max-height: 225px;
overflow: hidden;
&-wrapper {
padding: 10px 10px 40px 10px;
padding: 10px;
position: relative;
}
}
.WhatsNew.expanded {
max-height: unset;
}
.WhatsNew-heading {
display: flex;
Expand Down Expand Up @@ -137,19 +127,13 @@ export default Vue.extend({
}
}
.WhatsNew-expander {
height: 30px;
width: 100%;
background-color: #ffffff;
.v-application .WhatsNew-archive {
@include button-text('md');
padding: 3px 12px;
color: $green-1;
text-decoration: none;
position: absolute;
bottom: 0;
border-top: 0.5px solid #d9d9d9 !important;
cursor: pointer;
display: flex;
justify-content: center;
}
.WhatsNew.expanded .WhatsNew-expander i {
transform: rotateX(180deg);
top: 10px;
right: 10px;
}
</style>
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default {
title: '県内の最新感染動向',
date: Data.lastUpdate
},
newsItems: News.newsItems,
newsItems: News.newsItems.slice(0, 5),
metroGraphOption: {
responsive: true,
legend: {
Expand Down

0 comments on commit 10a71f6

Please sign in to comment.