Improved wall view for images (#3511)

* Proper masonry wall view for images
* allow user to configure margin and direction
This commit is contained in:
CJ
2023-03-07 19:36:47 -06:00
committed by GitHub
parent 9ede271c05
commit d4fb6b2acf
9 changed files with 199 additions and 38 deletions

View File

@@ -0,0 +1,23 @@
export enum ImageWallDirection {
Column = "column",
Row = "row",
}
export type ImageWallOptions = {
margin: number;
direction: ImageWallDirection;
};
export const defaultImageWallDirection: ImageWallDirection =
ImageWallDirection.Row;
export const defaultImageWallMargin = 3;
export const imageWallDirectionIntlMap = new Map<ImageWallDirection, string>([
[ImageWallDirection.Column, "dialogs.imagewall.direction.column"],
[ImageWallDirection.Row, "dialogs.imagewall.direction.row"],
]);
export const defaultImageWallOptions = {
margin: defaultImageWallMargin,
direction: defaultImageWallDirection,
};