mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
Adjust minimum font size for adaptive text across the application
Update the minimum font size from 24px to 12px in both client-side preview modal and server-side image processing to improve text adaptability. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 26883c03-a1a8-4dda-9695-f2319b42174c Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/5aomXd9
This commit is contained in:
1 parent
c679bfe875
commit
98a507b030
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user