client/packages/chat/src/values.ts
Alois f3cf836fcd
All checks were successful
/ build-web (push) Successful in 1m27s
/ build-desktop (linux) (push) Successful in 6m46s
/ build-mobile (push) Successful in 16m16s
/ release (push) Successful in 30s
(fix): a bunch or weird scroll behaviour
2026-06-13 11:39:47 +02:00

15 lines
400 B
TypeScript

import { z } from "zod";
import { ttp } from "@tensamin/shared/data";
export type RawMessages = z.infer<typeof ttp.messages_get.response>["messages"];
export type RawMessage = RawMessages[number];
export type LiveMessage = RawMessage & {
failed?: boolean;
localId: string;
};
export const PAGE_SIZE = 30;
export const FALLBACK_MESSAGE_HEIGHT = 28;
export const MESSAGES_PER_VIRTUAL_ROW = 30;