mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-24 07:28:11 +02:00
Merge pull request #91 from R0m1k3/dev
Adjust minimum font size for adaptive text across the application
This commit is contained in:
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 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 MAX_FONT_SIZE = 72;
|
||||||
const LINE_HEIGHT_MULTIPLIER = 1.2;
|
const LINE_HEIGHT_MULTIPLIER = 1.2;
|
||||||
|
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ export class ImageProcessor {
|
|||||||
const STORY_WIDTH = 1080;
|
const STORY_WIDTH = 1080;
|
||||||
const STORY_HEIGHT = 1920;
|
const STORY_HEIGHT = 1920;
|
||||||
const TEXT_BOX_HEIGHT_RATIO = 0.25;
|
const TEXT_BOX_HEIGHT_RATIO = 0.25;
|
||||||
const MIN_FONT_SIZE = 24;
|
const MIN_FONT_SIZE = 12;
|
||||||
const MAX_FONT_SIZE = 72;
|
const MAX_FONT_SIZE = 72;
|
||||||
const PADDING = 40;
|
const PADDING = 40;
|
||||||
const LINE_HEIGHT_MULTIPLIER = 1.3;
|
const LINE_HEIGHT_MULTIPLIER = 1.3;
|
||||||
|
|||||||
Reference in new issue
Block a user