Skip to content

Commit

Permalink
Merge pull request #151 from traPtitech/fix/make_project_member_respo…
Browse files Browse the repository at this point in the history
…nsive

プロジェクトメンバーをレスポンシブに
  • Loading branch information
mehm8128 authored Jan 8, 2024
2 parents 600c9c7 + ba4e1a8 commit 5201a0e
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions src/components/Projects/ProjectMember.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ const emit = defineEmits<{

<template>
<div :class="$style.container">
<div :class="$style.user">
<user-icon :user-id="user.id" :size="48" />
<p :class="$style.name">{{ user.name }}</p>
</div>
<div :class="$style.content">
<div :class="$style.user">
<user-icon :user-id="user.id" :size="48" />
<p :class="$style.name">{{ user.name }}</p>
</div>

<form-project-duration
v-model="value"
since-required
:class="$style.projectDuration"
/>
<form-project-duration
v-model="value"
since-required
:class="$style.projectDuration"
/>
</div>
<button :class="$style.icon" @click="emit('delete', user.id)">
<icon :size="32" name="mdi:delete" />
</button>
Expand All @@ -51,6 +53,12 @@ const emit = defineEmits<{
border: 1px solid $color-primary-text;
border-radius: 8px;
}
.content {
display: flex;
flex-wrap: wrap;
gap: 1rem;
flex: 1;
}
.name {
word-break: break-all;
}
Expand All @@ -59,6 +67,10 @@ const emit = defineEmits<{
display: flex;
align-items: center;
gap: 0.5rem;
@media (width <= 768px) {
width: 100%;
}
}
.icon {
Expand Down

0 comments on commit 5201a0e

Please sign in to comment.