feat: update right widget and add new 3d widget

This commit is contained in:
2026-04-30 22:57:14 +03:00
parent 53b8ce7095
commit 7f8a327329
18 changed files with 217 additions and 80 deletions

View File

@@ -213,7 +213,7 @@ export function SightFramePreview({
if (!sightName) return "120%";
const calculatedLineHeight = Math.max(
100,
Math.min(120, 120 - (sightName.length / 10) * 1)
Math.min(120, 120 - (sightName.replace(/\n/g, "").length / 10) * 1)
);
return `${calculatedLineHeight}%`;
}, [sightName]);