Skip to content

Commit

Permalink
Merge pull request #503 from KoukiNAGATA/nagata/front/sender-type2
Browse files Browse the repository at this point in the history
textareaの高さ合わせた
  • Loading branch information
KoukiNAGATA authored Sep 26, 2021
2 parents b950b17 + ee3f26c commit 1f1e7b3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
12 changes: 11 additions & 1 deletion app/front/assets/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@
width: 100%;
margin-top: 0.3em;
& > .sender-badge {
min-height: 20px;
font-size: 75%;
color: white;
padding: 0.15em 0.5em;
Expand All @@ -377,6 +378,12 @@
.admin {
background-color: $text-gray;
}
.none {
background-color: white;
}
.normaltext {
min-height: 80px !important;
}
& > .textarea {
padding: 0.5em 1em;
border: none;
Expand Down Expand Up @@ -572,14 +579,17 @@
color: $text-gray;
}

.badgecomment {
padding: 0.75em 0.8em 0.35em !important;
}
& > .comment,
.reaction {
position: relative;
width: 100%;
min-height: 5rem;
flex-grow: 1;
flex-shrink: 0;
padding: 0.75em 0.8em 0.35em;
padding: 0em 0.8em 0.35em;
border: 1px solid $placeholder-gray;
background: white;
border-radius: 5px;
Expand Down
2 changes: 2 additions & 0 deletions app/front/components/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
admin: message.iconId == 0,
question: message.type == 'question',
answer: message.type == 'answer',
badgecomment:
message.senderType === 'admin' || message.senderType === 'speaker',
}"
>
<!-- バッジ -->
Expand Down
4 changes: 3 additions & 1 deletion app/front/components/TextArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
</div>
<div v-if="selectedChatItem === null" class="sender-badge-wrapper">
<span v-if="isAdmin" class="sender-badge admin"> from 運営 </span>
<span v-if="isSpeaker" class="sender-badge speaker">
<span v-else-if="isSpeaker" class="sender-badge speaker">
from スピーカー
</span>
<!--span v-else class="sender-badge none"></span-->
</div>
<!--div class="input-area__fixed-phrases">
<fixed-phrase text="8888888888" />
Expand All @@ -28,6 +29,7 @@
v-model="text"
:disabled="disabled"
class="textarea"
:class="{ normaltext: isAdmin === false && isSpeaker === false }"
contenteditable
:placeholder="placeholder"
/>
Expand Down

1 comment on commit 1f1e7b3

@vercel
Copy link

@vercel vercel bot commented on 1f1e7b3 Sep 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.