Skip to content

Commit

Permalink
Merge pull request #2518 from nextcloud/artonge/backport/2514/stable28
Browse files Browse the repository at this point in the history
[stable28] Various fix from 30
  • Loading branch information
artonge committed Jul 4, 2024
2 parents 759d49a + aa45e5d commit cf0bf4e
Show file tree
Hide file tree
Showing 20 changed files with 65 additions and 59 deletions.
4 changes: 2 additions & 2 deletions js/photos-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-main.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-public.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-src_views_AlbumContent_vue.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-src_views_AlbumContent_vue.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-src_views_Folders_vue.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-src_views_Folders_vue.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/Collection/CollectionContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<slot v-if="sortedCollectionFileIds.length === 0 && !loading" name="empty-content" />

<!-- Media list -->
<FilesListViewer v-if="collection !== undefined"
<FilesListViewer v-if="collection !== undefined && sortedCollectionFileIds.length > 0 "
:container-element="appContent"
class="collection__media"
:file-ids="sortedCollectionFileIds"
Expand Down
6 changes: 3 additions & 3 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const router = new Router({
{
path: '/albums/:albumName*',
component: AlbumContent,
name: 'albums',
name: 'albumsContent',
props: route => ({
albumName: route.params.albumName,
}),
Expand All @@ -150,7 +150,7 @@ const router = new Router({
{
path: '/sharedalbums/:albumName*',
component: SharedAlbumContent,
name: 'sharedAlbums',
name: 'sharedAlbumsContent',
props: route => ({
albumName: route.params.albumName,
}),
Expand Down Expand Up @@ -181,7 +181,7 @@ const router = new Router({
{
path: '/places/:placeName*',
component: PlaceContent,
name: 'places',
name: 'placesContent',
props: route => ({
placeName: route.params.placeName,
}),
Expand Down
43 changes: 25 additions & 18 deletions src/views/AlbumContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
-
-->
<template>
<div>
<CollectionContent v-if="true"
ref="collectionContent"
<div class="album-container">
<CollectionContent ref="collectionContent"
:collection="album"
:collection-file-ids="albumFileIds"
:loading="loadingCollection || loadingCollectionFiles"
Expand Down Expand Up @@ -53,8 +52,7 @@
</template>
<template v-if="album !== undefined" slot="right">
<UploadPicker v-if="album.nbItems !== 0"
:accept="allowedMimes"
<UploadPicker :accept="allowedMimes"
:context="uploadContext"
:destination="albumAsFolder"
:root="uploadContext.root"
Expand Down Expand Up @@ -127,7 +125,8 @@
</NcEmptyContent>
</CollectionContent>
<PhotosPicker :open.sync="showAddPhotosModal"
<PhotosPicker v-if="album !== undefined"
:open.sync="showAddPhotosModal"
:blacklist-ids="albumFileIds"
:destination="album.basename"
:name="t('photos', 'Add photos to {albumName}', {albumName: albumName})"
Expand Down Expand Up @@ -402,6 +401,14 @@ export default {
}
</script>
<style lang="scss" scoped>
.album-container {
height: 100%;
:deep(.collection) {
height: 100%;
}
}
.album {
&__title {
width: 100%;
Expand All @@ -426,19 +433,19 @@ export default {
&--uploading {
margin-bottom: 30px;
}
}
:deep(.upload-picker) {
.upload-picker__progress {
position: absolute;
bottom: -30px;
left: 64px;
margin: 0;
}
.upload-picker__cancel {
position: absolute;
bottom: -24px;
right: 50px;
:deep(.upload-picker) {
.upload-picker__progress {
position: absolute;
bottom: -30px;
left: 64px;
margin: 0;
}
.upload-picker__cancel {
position: absolute;
bottom: -24px;
right: 50px;
}
}
}
</style>
25 changes: 12 additions & 13 deletions src/views/Folders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -321,21 +321,20 @@ export default {
&--uploading {
margin-bottom: 30px;
}
}
:deep(.upload-picker) {
.upload-picker__progress {
position: absolute;
bottom: -30px;
left: 64px;
margin: 0;
}
:deep(.upload-picker) {
.upload-picker__progress {
position: absolute;
bottom: -30px;
left: 64px;
margin: 0;
}
.upload-picker__cancel {
position: absolute;
bottom: -24px;
right: 50px;
.upload-picker__cancel {
position: absolute;
bottom: -24px;
right: 50px;
}
}
}
</style>

0 comments on commit cf0bf4e

Please sign in to comment.