diff --git a/lib/ui/main_dashboard.dart b/lib/ui/main_dashboard.dart index a790c59..7f940a2 100644 --- a/lib/ui/main_dashboard.dart +++ b/lib/ui/main_dashboard.dart @@ -80,7 +80,7 @@ class _MainDashboardState extends State { if (kTileEditingEnabled) { _layout.load(_tileSpecs().map((t) => t.id).toList()); } - if (_isStudent) { + if (_isStudent || _isAdmin) { _loadEquippedTheme(); } } @@ -753,7 +753,7 @@ class _MainDashboardState extends State { ), ); // 상점에서 테마를 바꾸고 돌아왔을 수 있으니 다시 불러온다. - if (_isStudent) _loadEquippedTheme(); + if (_isStudent || _isAdmin) _loadEquippedTheme(); }, child: const Padding( padding: EdgeInsets.all(8), diff --git a/lib/ui/profile_customize_screen.dart b/lib/ui/profile_customize_screen.dart index 714b9b5..498c2df 100644 --- a/lib/ui/profile_customize_screen.dart +++ b/lib/ui/profile_customize_screen.dart @@ -141,7 +141,7 @@ class _ProfileCustomizeScreenState extends State { // 📏 ListView(스크롤 영역) 안에서는 높이가 정해져 있지 않아 Row에 // stretch 정렬만 주면 자식 크기 계산이 깨진다. SizedBox로 높이를 못박아둔다. return SizedBox( - height: 180, + height: 210, child: Row( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ @@ -247,7 +247,7 @@ class _CategoryTile extends StatelessWidget { borderRadius: BorderRadius.circular(20), onTap: onTap, child: Container( - padding: const EdgeInsets.all(16), + padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 10), decoration: BoxDecoration( borderRadius: BorderRadius.circular(20), border: Border.all( @@ -257,30 +257,35 @@ class _CategoryTile extends StatelessWidget { child: Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, + mainAxisSize: MainAxisSize.min, children: [ Icon( icon, - size: 26, + size: 22, color: selected ? Colors.white : (enabled ? AppPalette.ink : Colors.grey), ), - const SizedBox(height: 10), + const SizedBox(height: 8), Text( title, + maxLines: 1, + overflow: TextOverflow.ellipsis, style: TextStyle( fontWeight: FontWeight.bold, - fontSize: 14, + fontSize: 13, color: selected ? Colors.white : (enabled ? AppPalette.ink : Colors.grey[600]), ), ), if (subtitle != null) ...[ - const SizedBox(height: 4), + const SizedBox(height: 2), Text( subtitle!, - style: TextStyle(fontSize: 11, color: Colors.grey[500]), + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: TextStyle(fontSize: 10, color: Colors.grey[500]), ), ], ],