mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-25 02:04:15 +02:00
fixing directory preview image
This commit is contained in:
parent
c98429a133
commit
25d145b849
3
.gitignore
vendored
3
.gitignore
vendored
@ -12,6 +12,8 @@ common/**/*.js.map
|
||||
test/coverage
|
||||
test/backend/**/*.js
|
||||
test/backend/**/*.js.map
|
||||
test/common/**/*.js
|
||||
test/common/**/*.js.map
|
||||
test/e2e/**/*.js
|
||||
test/e2e/**/*.js.map
|
||||
demo/TEMP/
|
||||
@ -20,3 +22,4 @@ users.db
|
||||
sqlite.db
|
||||
dist/
|
||||
release/
|
||||
out-tsc/
|
||||
|
@ -162,8 +162,6 @@ export class AuthenticationMWs {
|
||||
return null;
|
||||
}
|
||||
|
||||
console.log(sharing);
|
||||
|
||||
if (Config.Client.Sharing.passwordProtected === true && (sharing.password)) {
|
||||
return null;
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
<div class="photo-container"
|
||||
[style.width.px]="calcSize()"
|
||||
[style.height.px]="calcSize()">
|
||||
<div [class]="'photo ' + (SamplePhoto ? 'photo-orientation-'+SamplePhoto.metadata.orientation : '')"
|
||||
<div [ngClass]="'photo ' + (SamplePhoto ? 'photo-orientation-'+SamplePhoto.metadata.orientation : '')"
|
||||
*ngIf="thumbnail && thumbnail.Available"
|
||||
[style.background-image]="getSanitizedThUrl()"></div>
|
||||
|
||||
|
@ -37,8 +37,11 @@ export class GalleryDirectoryComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
getSanitizedThUrl() {
|
||||
return this._sanitizer.bypassSecurityTrustStyle('url(' + encodeURI(this.thumbnail.Src).replace(/\(/g, '%28')
|
||||
.replace(/\)/g, '%29') + ')');
|
||||
return this._sanitizer.bypassSecurityTrustStyle('url(' +
|
||||
encodeURI(this.thumbnail.Src)
|
||||
.replace(/\(/g, '%28')
|
||||
.replace(/'/g, '%27')
|
||||
.replace(/\)/g, '%29') + ')');
|
||||
}
|
||||
|
||||
// TODO: implement scroll
|
||||
|
Loading…
Reference in New Issue
Block a user