mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
parent
8ac22fb4ad
commit
3825c41f13
@ -1056,6 +1056,25 @@ export class ClientGalleryConfig {
|
|||||||
description: $localize`Pigallery2 uses Bootstrap 5.3 (https://getbootstrap.com/docs/5.3) for design (css, layout). In dark mode it sets 'data-bs-theme="dark"' to the <html> to take advantage bootstrap's color modes. For theming, read more at: https://getbootstrap.com/docs/5.3/customize/color-modes/`
|
description: $localize`Pigallery2 uses Bootstrap 5.3 (https://getbootstrap.com/docs/5.3) for design (css, layout). In dark mode it sets 'data-bs-theme="dark"' to the <html> to take advantage bootstrap's color modes. For theming, read more at: https://getbootstrap.com/docs/5.3/customize/color-modes/`
|
||||||
})
|
})
|
||||||
Themes: ThemesConfig = new ThemesConfig();
|
Themes: ThemesConfig = new ThemesConfig();
|
||||||
|
@ConfigProperty({
|
||||||
|
tags: {
|
||||||
|
name: $localize`Inline blog starts open`,
|
||||||
|
priority: ConfigPriority.advanced,
|
||||||
|
githubIssue: 711
|
||||||
|
},
|
||||||
|
description: $localize`Makes inline blog (*.md files content) to be auto open.`
|
||||||
|
})
|
||||||
|
InlineBlogStartsOpen: boolean = false;
|
||||||
|
|
||||||
|
@ConfigProperty({
|
||||||
|
tags: {
|
||||||
|
name: $localize`Top blog starts open`,
|
||||||
|
priority: ConfigPriority.advanced,
|
||||||
|
githubIssue: 711
|
||||||
|
},
|
||||||
|
description: $localize`Makes inline blog (*.md files content) to be auto open.`
|
||||||
|
})
|
||||||
|
TopBlogStartsOpen: boolean = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubConfigClass({tags: {client: true}, softReadonly: true})
|
@SubConfigClass({tags: {client: true}, softReadonly: true})
|
||||||
|
@ -32,7 +32,7 @@ export class GalleryComponent implements OnInit, OnDestroy {
|
|||||||
public showSearchBar = false;
|
public showSearchBar = false;
|
||||||
public showShare = false;
|
public showShare = false;
|
||||||
public showRandomPhotoBuilder = false;
|
public showRandomPhotoBuilder = false;
|
||||||
public blogOpen = false;
|
public blogOpen = Config.Gallery.TopBlogStartsOpen;
|
||||||
|
|
||||||
config = Config;
|
config = Config;
|
||||||
public isPhotoWithLocation = false;
|
public isPhotoWithLocation = false;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<ng-container *ngIf="group.date">
|
<ng-container *ngIf="group.date">
|
||||||
<app-gallery-blog [date]="group.date" [open]="false"></app-gallery-blog>
|
<app-gallery-blog [date]="group.date" [open]="blogOpen"></app-gallery-blog>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<div class="media-grid">
|
<div class="media-grid">
|
||||||
<app-gallery-grid-photo
|
<app-gallery-grid-photo
|
||||||
|
@ -58,6 +58,7 @@ export class GalleryGridComponent
|
|||||||
private helperTime: number = null;
|
private helperTime: number = null;
|
||||||
public renderDelayTimer: number = null; // delays render on resize
|
public renderDelayTimer: number = null; // delays render on resize
|
||||||
public readonly GroupByTypes = GroupByTypes;
|
public readonly GroupByTypes = GroupByTypes;
|
||||||
|
public readonly blogOpen = Config.Gallery.InlineBlogStartsOpen;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private overlayService: OverlayService,
|
private overlayService: OverlayService,
|
||||||
|
Loading…
Reference in New Issue
Block a user