Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

イベント一覧でMarkDownをパースするように #931

Merged
merged 3 commits into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/components/event/EventListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
</div>
<div>@{{ event.place }}</div>
</v-card-subtitle>
<v-card-text class="text-truncate">{{ event.description }}</v-card-text>
<v-card-text
><MarkdownField :src="event.description" class="markdown-field"
/></v-card-text>
<v-card-actions class="px-4">
<v-row dense>
<v-col sm="" cols="12">
Expand All @@ -36,13 +38,15 @@ import Vue from 'vue'
import { Component, Prop } from 'vue-property-decorator'
import UserAvatar from '@/components/shared/UserAvatar.vue'
import EventTag from '@/components/shared/EventTag.vue'
import MarkdownField from '@/components/shared/MarkdownField.vue'
import { formatDate, DATETIME_DISPLAY_FORMAT } from '@/workers/date'
import { ResponseEvent } from '@/api'

@Component({
components: {
UserAvatar,
EventTag,
MarkdownField,
},
})
export default class EventListItem extends Vue {
Expand All @@ -54,3 +58,10 @@ export default class EventListItem extends Vue {
}
}
</script>
<style scoped>
.markdown-field {
padding-top: 4px;
max-height: 200px;
overflow: auto;
}
</style>
Loading