Merge pull request #91 from R0m1k3/dev

Adjust minimum font size for adaptive text across the application
This commit is contained in:
LogiFlow authored and GitHub committed 2025-11-17 16:10:43 +01:00
commit 0c66a50ba2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -252,7 +252,7 @@ export function PreviewModal({
};
const calculateAdaptiveFontSize = (text: string, containerWidth: number, containerHeight: number): { fontSize: number; lines: string[]; isTruncated: boolean } => {
const MIN_FONT_SIZE = 24;
const MIN_FONT_SIZE = 12;
const MAX_FONT_SIZE = 72;
const LINE_HEIGHT_MULTIPLIER = 1.2;
+1 -1
View File
@@ -103,7 +103,7 @@ export class ImageProcessor {
const STORY_WIDTH = 1080;
const STORY_HEIGHT = 1920;
const TEXT_BOX_HEIGHT_RATIO = 0.25;
const MIN_FONT_SIZE = 24;
const MIN_FONT_SIZE = 12;
const MAX_FONT_SIZE = 72;
const PADDING = 40;
const LINE_HEIGHT_MULTIPLIER = 1.3;