Skip to content

Commit e8240fa

Browse files
authored
Merge pull request #113 from traPtitech/feature/allow-view-others-answers-
Feature/allow view others answers
2 parents 88a366b + d1f495b commit e8240fa

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/components/information/AnswersDialog.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ const closeBtnProps = {
9292
:max-width="xs ? undefined : 800"
9393
>
9494
<template #activator="{ props: activatorProps }">
95-
<div :class="$style.button" v-bind="activatorProps">参加者の回答を見る</div>
95+
<div style="display: flex; justify-content: flex-end">
96+
<div :class="$style.button" v-bind="activatorProps">参加者の回答を見る</div>
97+
</div>
9698
</template>
9799

98100
<template #default="{ isActive }">
@@ -139,9 +141,9 @@ const closeBtnProps = {
139141
140142
.button {
141143
margin-top: 10px;
142-
width: 100%;
143-
text-align: end;
144144
font-size: 12px;
145+
padding: 4px 0px;
146+
display: inline-block;
145147
font-weight: 400;
146148
color: #0066ff;
147149
cursor: pointer;

src/components/information/QuestionGroupViewer.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import type { components } from '@/api/schema'
33
import QuestionShowField from '@/components/information/QuestionShowField.vue'
44
import { computed } from 'vue'
5+
import AnswerDialog from '@/components/information/AnswersDialog.vue'
56
67
type QuestionGroup = components['schemas']['QuestionGroupResponse']
78
type Question = components['schemas']['QuestionResponse']
@@ -61,6 +62,7 @@ const questionUnits = computed(() => props.getQuestionUnits(props.questionGroup.
6162
/>
6263
</div>
6364
</div>
65+
<answer-dialog :question-group="props.questionGroup" />
6466
</v-card-text>
6567
</v-card>
6668
</template>

0 commit comments

Comments
 (0)