File tree Expand file tree Collapse file tree 3 files changed +18
-12
lines changed
Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 8383 <NcFormBoxSwitch
8484 v-model =" compactMode"
8585 :label =" t('mail', 'Compact mode')"
86- :description =" t('mail', 'Compact mode')"
87- @update:modelValue =" compactMode = $event" />
88- {{ compactMode }}
86+ :description =" t('mail', 'Compact mode')" />
8987 </NcFormBox >
9088
9189 <NcRadioGroup :model-value =" sortOrder" :label =" t('mail', 'Sorting')" @update:modelValue =" onSortByDate" >
Original file line number Diff line number Diff line change 6464 </template >
6565 <template v-else >
6666 <Avatar
67+ v-if =" !compactMode"
6768 :display-name =" addresses"
6869 :email =" avatarEmail"
6970 :fetch-avatar =" data.fetchAvatarFromClient"
7071 :avatar =" data.avatar" />
72+ <div
73+ v-else
74+ class =" compact-avatar-ball" >
75+ </div >
7176 </template >
7277 </div >
7378 </template >
@@ -575,11 +580,6 @@ export default {
575580 type: Boolean ,
576581 default: false ,
577582 },
578-
579- compactMode: {
580- type: Boolean ,
581- default: false ,
582- },
583583 },
584584
585585 data () {
@@ -620,6 +620,10 @@ export default {
620620 return this .mainStore .getPreference (' layout-message-view' , ' threaded' ) === ' threaded'
621621 },
622622
623+ compactMode () {
624+ return this .mainStore .getPreference (' compact-mode' , ' false' ) === ' true'
625+ },
626+
623627 hasMultipleRecipients () {
624628 if (! this .account ) {
625629 console .error (' account is undefined' , {
@@ -1609,4 +1613,12 @@ export default {
16091613 justify- content: center;
16101614}
16111615
1616+ .compact - avatar- ball {
1617+ width: 10px ;
1618+ height: 10px ;
1619+ border- radius: 50 % ;
1620+ background- color: var (-- color- main- text);
1621+ display: inline- block;
1622+ vertical- align: middle;
1623+ }
16121624< / style>
Original file line number Diff line number Diff line change @@ -290,10 +290,6 @@ export default {
290290 return this .mainStore .getPreference (' layout-mode' , ' vertical-split' )
291291 },
292292
293- compactMode () {
294- return this .mainStore .getPreference (' compact-mode' , ' false' ) === ' true'
295- },
296-
297293 horizontalListMinWidth () {
298294 return this .layoutMode === ' horizontal-split' ? 40 : 30
299295 },
You can’t perform that action at this time.
0 commit comments