fix(ui): HP/MP 바 숫자 영역 오버플로우 수정
- _buildBar Row의 HP/MP 숫자를 Flexible로 변경 - 좁은 화면에서도 오버플로우 방지
This commit is contained in:
@@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user