feat(boards): add responsive layout system (#2271)
This commit is contained in:
@@ -3,5 +3,5 @@ export { oldmarrConfigSchema } from "./config";
|
||||
export type { OldmarrApp, OldmarrIntegrationType } from "./app";
|
||||
export type { OldmarrWidget, OldmarrWidgetKind } from "./widget";
|
||||
export { oldmarrWidgetKinds } from "./widget";
|
||||
export { boardSizes } from "./tile";
|
||||
export { boardSizes, getBoardSizeName } from "./tile";
|
||||
export type { BoardSize } from "./tile";
|
||||
|
||||
@@ -58,3 +58,15 @@ export const tileBaseSchema = z.object({
|
||||
|
||||
export const boardSizes = objectKeys(shapeSchema._def.shape());
|
||||
export type BoardSize = (typeof boardSizes)[number];
|
||||
|
||||
export const getBoardSizeName = (size: BoardSize) => {
|
||||
switch (size) {
|
||||
case "md":
|
||||
return "medium";
|
||||
case "sm":
|
||||
return "small";
|
||||
case "lg":
|
||||
default:
|
||||
return "large";
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user