feat(boards): add responsive layout system (#2271)

This commit is contained in:
Meier Lukas
2025-02-23 17:34:56 +01:00
committed by GitHub
parent 2085b5ece2
commit 7761dc29c8
98 changed files with 11770 additions and 1694 deletions

View File

@@ -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";

View File

@@ -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";
}
};