mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
support multiple custom text blocks
This commit is contained in:
@@ -11,7 +11,10 @@ import {
|
||||
|
||||
export const GRID_ROW_HEIGHT = 32;
|
||||
export const HEIGHT_MODIFIER = 1.8;
|
||||
export const MULTIPLE_ALLOWED_BOXES = [BoxTypes.EMBEDDED_URL] as Array<BoxType>;
|
||||
export const MULTIPLE_ALLOWED_BOXES = [
|
||||
BoxTypes.EMBEDDED_URL,
|
||||
BoxTypes.CUSTOM_TEXT,
|
||||
] as Array<BoxType>;
|
||||
|
||||
export const removeBoxFromLayouts = (
|
||||
layouts: Layouts,
|
||||
@@ -189,6 +192,7 @@ const DEFAULT_BOX_HEIGHTS: Partial<Record<BoxType, number>> = {
|
||||
// common boxes
|
||||
[BoxTypes.ADD_NEW_BOX]: 3,
|
||||
[BoxTypes.EMBEDDED_URL]: 7,
|
||||
[BoxTypes.CUSTOM_TEXT]: 7,
|
||||
};
|
||||
|
||||
export const getBoxLayoutItemDefaults = (type: BoxType): Layout => ({
|
||||
|
||||
Reference in New Issue
Block a user