fix(stock): 포트폴리오 카드 모바일 금액 줄바꿈 방지

천만원 단위 이상에서 '원'이 다음 줄로 넘어가던 문제 해결.
값 길이별 폰트 단계 축소(is-fit-sm/xs) + nowrap 적용.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-06 03:54:20 +09:00
parent 4acdc451c0
commit d38ee553c3
3 changed files with 59 additions and 27 deletions

View File

@@ -71,6 +71,13 @@ export const profitColorClass = (numericValue) => {
return '';
};
export const numFitClass = (text) => {
const len = String(text ?? '').length;
if (len >= 13) return 'is-fit-xs';
if (len >= 10) return 'is-fit-sm';
return '';
};
export const getVixLabel = (vix) => {
if (vix < 12) return '극히 낮음 (안일 주의)';
if (vix < 20) return '정상 (안정적)';