fix(ui): HP/MP 바 숫자 영역 오버플로우 수정

- _buildBar Row의 HP/MP 숫자를 Flexible로 변경
- 좁은 화면에서도 오버플로우 방지
This commit is contained in:
JiWoong Sul
2025-12-21 10:54:39 +09:00
parent c07f77a02f
commit 4e7db1d58a

View File

@@ -291,12 +291,14 @@ class _HpMpBarState extends State<HpMpBar> with TickerProviderStateMixin {
), ),
), ),
const SizedBox(width: 4), const SizedBox(width: 4),
SizedBox( // Flexible로 오버플로우 방지
width: 60, Flexible(
flex: 0,
child: Text( child: Text(
'$current/$max', '$current/$max',
style: const TextStyle(fontSize: 9), style: const TextStyle(fontSize: 9),
textAlign: TextAlign.right, textAlign: TextAlign.right,
overflow: TextOverflow.ellipsis,
), ),
), ),
], ],