feat: update right widget and add new 3d widget
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user