Skip to content

Commit

Permalink
Merge pull request #9700 from nextcloud/feat/increaze-horizontal-max-…
Browse files Browse the repository at this point in the history
…width

feat: increaze the min and max width for horizontal view
  • Loading branch information
GretaD committed Jul 8, 2024
2 parents d1b19ff + cef3c44 commit d6a55f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/MailboxThread.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<AppContent pane-config-key="mail"
:layout="layoutMode"
:show-details="isThreadShown"
:list-min-width="horizontalListMinWidth"
:list-max-width="horizontalListMaxWidth"
@update:showDetails="hideMessage">
<template #list>
<div :class="{ list__wrapper: !showThread || !isMobile }">
Expand Down Expand Up @@ -188,6 +190,12 @@ export default {
layoutMode() {
return this.$store.getters.getPreference('layout-mode', 'vertical-split')
},
horizontalListMinWidth() {
return this.layoutMode === 'horizontal-split' ? 40 : 30
},
horizontalListMaxWidth() {
return this.layoutMode === 'horizontal-split' ? 60 : 50
},
unifiedAccount() {
return this.$store.getters.getAccount(UNIFIED_ACCOUNT_ID)
},
Expand Down

0 comments on commit d6a55f8

Please sign in to comment.