mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
20 lines
608 B
TypeScript
20 lines
608 B
TypeScript
/**
|
|
* Shared constants for field dimension enforcement.
|
|
*
|
|
* These constants ensure consistency between:
|
|
* 1. AI prompt (server/api/ai.ts) - instructs Gemini on minimum field dimensions
|
|
* 2. Client enforcement (envelope-editor-fields-page.tsx) - fallback validation
|
|
*/
|
|
|
|
/**
|
|
* Minimum field height in pixels.
|
|
* Fields smaller than this will be expanded to meet minimum usability requirements.
|
|
*/
|
|
export const MIN_FIELD_HEIGHT_PX = 30;
|
|
|
|
/**
|
|
* Minimum field width in pixels.
|
|
* Fields smaller than this will be expanded to meet minimum usability requirements.
|
|
*/
|
|
export const MIN_FIELD_WIDTH_PX = 36;
|