Skip to content

Commit

Permalink
fixup! feat: add recipient info on the right side of the composer
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Nov 22, 2024
1 parent b413f34 commit 827f796
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/MailboxThread.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export default {
.length > 0
},
importantMessagesInitialPageSize() {
if (window.innerHeight > 900) {
if (window.innerHeight > 1024) {
return 7
}
if (window.innerHeight > 750) {
Expand Down
6 changes: 3 additions & 3 deletions src/components/NewMessageModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default {
cookedComposerData: undefined,
changed: false,
largerModal: false,
isLargeScreen: window.innerWidth >= 1200,
isLargeScreen: window.innerWidth >= 1024,
isMaximized: false,
recipient: {
name: '',
Expand Down Expand Up @@ -250,7 +250,7 @@ export default {
},
methods: {
checkScreenSize() {
this.isLargeScreen = window.innerWidth >= 1200
this.isLargeScreen = window.innerWidth >= 1024
},
async openModalSize() {
try {
Expand Down Expand Up @@ -639,7 +639,7 @@ export default {
overflow-y: auto;
padding-left: 5px;
border-left: 1px solid #ccc;
@media (max-width: 1200px) {
@media (max-width: 1024px) {
display: none;
}
}
Expand Down
8 changes: 5 additions & 3 deletions src/components/RecipientInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
:display-name="recipients[0].displayName"
:email="recipients[0].email"
:size="64"
:disable-tooltip="true"
:url="recipients[0].photoUrl" />
:disable-tooltip="true" />
</div>
<div class="recipient-details">
<h6>{{ recipients[0].displayName }}</h6>
<h6>{{ recipient[0].email }}</h6>
<DisplayContactDetails :email="recipient[0].email" />
</div>
</div>
Expand All @@ -28,6 +27,9 @@
:size="64"
:disable-tooltip="true"
:disable-menu="true" />
<div v-if="!expandedRecipients[index]" class="recipient-name">
<h6>{{ recipient.email }}</h6>
</div>
<div class="expand-toggle" @click="toggleExpand(index)">
<IconArrowUp v-if="isExpanded(index)" :size="16" />
<IconArrowDown v-else :size="16" />
Expand Down

0 comments on commit 827f796

Please sign in to comment.