Skip to content

Commit 9571ec1

Browse files
committed
fix(files): Move loading icon before grid toggle
This prevents jumping of that toggle button when the view is loading. Also adjust the design for Nextcloud 30 (prevent jumping of breadcrumbs when loading due to increased height). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 1907eee commit 9571ec1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

apps/files/src/views/FilesList.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
</template>
4949
</BreadCrumbs>
5050

51+
<!-- Secondary loading indicator -->
52+
<NcLoadingIcon v-if="isRefreshing" class="files-list__refresh-icon" />
53+
5154
<NcButton v-if="filesListWidth >= 512 && enableGridView"
5255
:aria-label="gridViewButtonLabel"
5356
:title="gridViewButtonLabel"
@@ -59,9 +62,6 @@
5962
<ViewGridIcon v-else />
6063
</template>
6164
</NcButton>
62-
63-
<!-- Secondary loading indicator -->
64-
<NcLoadingIcon v-if="isRefreshing" class="files-list__refresh-icon" />
6565
</div>
6666

6767
<!-- Drag and drop notice -->
@@ -703,9 +703,9 @@ export default defineComponent({
703703
}
704704
705705
&__refresh-icon {
706-
flex: 0 0 44px;
707-
width: 44px;
708-
height: 44px;
706+
flex: 0 0 var(--default-clickable-area);
707+
width: var(--default-clickable-area);
708+
height: var(--default-clickable-area);
709709
}
710710
711711
&__loading-icon {

0 commit comments

Comments
 (0)