Skip to content

Commit

Permalink
pcでは元のまま
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Apr 24, 2024
1 parent 9e075a6 commit 2343573
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions src/components/Projects/ProjectMember.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ 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.icon" @click="emit('delete', user.id)">
<button
:class="[$style.deleteButton, $style.sp]"
@click="emit('delete', user.id)"
>
<icon :size="32" name="mdi:delete" />
</button>
</div>
Expand All @@ -50,6 +53,12 @@ const shouldShowDurationError = computed(
</field-error-message>
</div>
</div>
<button
:class="[$style.deleteButton, $style.pc]"
@click="emit('delete', user.id)"
>
<icon :size="32" name="mdi:delete" />
</button>
</div>
</template>

Expand Down Expand Up @@ -85,11 +94,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 2343573

Please sign in to comment.