Skip to content

Commit

Permalink
Merge pull request #215 from traPtitech/feat/project_member_sp
Browse files Browse the repository at this point in the history
ProjectMemberの削除ボタンを移動して表示が崩れないように
  • Loading branch information
mehm8128 authored May 11, 2024
2 parents 4132eac + 2343573 commit b35778f
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions src/components/Projects/ProjectMember.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ const shouldShowDurationError = computed(
<div :class="$style.user">
<user-icon :user-id="user.id" :size="48" />
<p :class="$style.name">{{ user.name }}</p>
<button
:class="[$style.deleteButton, $style.sp]"
@click="emit('delete', user.id)"
>
<icon :size="32" name="mdi:delete" />
</button>
</div>
<div>
<form-project-duration
Expand All @@ -42,7 +48,10 @@ const shouldShowDurationError = computed(
</field-error-message>
</div>
</div>
<button :class="$style.icon" @click="emit('delete', user.id)">
<button
:class="[$style.deleteButton, $style.pc]"
@click="emit('delete', user.id)"
>
<icon :size="32" name="mdi:delete" />
</button>
</div>
Expand All @@ -66,6 +75,7 @@ const shouldShowDurationError = computed(
flex: 1;
}
.name {
flex: 1;
word-break: break-all;
}
.user {
Expand All @@ -79,11 +89,20 @@ const shouldShowDurationError = computed(
}
}
.icon {
.deleteButton {
color: $color-secondary;
&:hover {
opacity: 0.8;
}
margin-left: auto;
}
.pc {
@media (width <= 768px) {
display: none;
}
}
.sp {
@media (width > 768px) {
display: none;
}
}
</style>

0 comments on commit b35778f

Please sign in to comment.