fix(masters): 메뉴 권한 목록 라벨과 액션 영역 정리

- group_permission_page에서 메뉴 경로를 allAppPages 라벨로 매핑하고 없는 경우 메뉴명을 유지하도록 MenuItem 표시를 보완했음
- group_permission_page와 user_page의 액션 버튼을 Row로 재구성하고 여백을 고정해 버튼 정렬을 안정화했음
- group_permission_page와 user_page의 ShadTable 컬럼 폭을 조정해 액션 영역이 잘리지 않도록 했음
- flutter analyze, flutter test
This commit is contained in:
JiWoong Sul
2025-11-05 18:36:51 +09:00
parent fa0bda5ea4
commit 1f78171294
2 changed files with 31 additions and 12 deletions

View File

@@ -965,8 +965,8 @@ class _UserTable extends StatelessWidget {
ShadTableCell(
child: Align(
alignment: Alignment.centerRight,
child: Wrap(
spacing: 8,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
ShadButton.ghost(
size: ShadButtonSize.sm,
@@ -975,11 +975,13 @@ class _UserTable extends StatelessWidget {
: () => onResetPassword!(user),
child: const Icon(LucideIcons.refreshCcw, size: 16),
),
const SizedBox(width: 8),
ShadButton.ghost(
size: ShadButtonSize.sm,
onPressed: onEdit == null ? null : () => onEdit!(user),
child: const Icon(LucideIcons.pencil, size: 16),
),
const SizedBox(width: 8),
user.isDeleted
? ShadButton.ghost(
size: ShadButtonSize.sm,
@@ -1008,7 +1010,7 @@ class _UserTable extends StatelessWidget {
header: header,
children: rows,
columnSpanExtent: (index) => index == 10
? const FixedTableSpanExtent(160)
? const FixedTableSpanExtent(200)
: const FixedTableSpanExtent(140),
),
);