Skip to content

Commit

Permalink
Merge pull request #6304 from nextcloud/fix/6205/center-loading-indic…
Browse files Browse the repository at this point in the history
…ator

Fix alignment of mailbox loading indicator
  • Loading branch information
ChristophWurst authored Apr 27, 2022
2 parents c4ecde1 + 1f4c794 commit ef0c005
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/components/Loading.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<template>
<div v-if="hint" class="emptycontent">
<a class="icon-loading" />
<h2>{{ hint }}</h2>
<transition name="fade">
<em v-if="slowHint && slow">{{ slowHint }}</em>
</transition>
<div class="wrapper">
<div v-if="hint" class="emptycontent">
<a class="icon-loading" />
<h2>{{ hint }}</h2>
<transition name="fade">
<em v-if="slowHint && slow">{{ slowHint }}</em>
</transition>
</div>
<div v-else class="container icon-loading" />
</div>
<div v-else class="container icon-loading" />
</template>

<script>
Expand Down Expand Up @@ -52,4 +54,11 @@ export default {
.fade-leave-to {
opacity: 0;
}
.wrapper {
display: flex;
justify-content: space-around;
flex-direction: column;
flex: 1 auto;
}
</style>
5 changes: 5 additions & 0 deletions src/components/MailboxThread.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ export default {
padding: 16px;
}
.app-content-list {
// Required for centering the loading indicator
display: flex;
}
.app-content-list-item:hover {
background: transparent;
}
Expand Down

0 comments on commit ef0c005

Please sign in to comment.