Add descriptions
This commit is contained in:
@@ -81,7 +81,13 @@ export default class AlbumPage extends Vue {
|
||||
|
||||
get images() {
|
||||
return this.album!.files
|
||||
.map(item => `/pictures/albums/${this.album!.folderName}/photos/${item}`);
|
||||
.map((item, index) => {
|
||||
return {
|
||||
id: `${this.album!.folderName}/${item}`,
|
||||
href: `/pictures/albums/${this.album!.folderName}/photos/${item}`,
|
||||
description: this.album!.photoDescription[item] || ' ',
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
updateFiles() {
|
||||
@@ -145,4 +151,10 @@ export default class AlbumPage extends Vue {
|
||||
background: none;
|
||||
color: white!important;
|
||||
}
|
||||
|
||||
.blueimp-gallery-controls > .description {
|
||||
margin-top: calc(100vh - 5em);
|
||||
width: 100vw;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user