diff --git a/lib/screens/chat/room.dart b/lib/screens/chat/room.dart index e85de18..314cfae 100644 --- a/lib/screens/chat/room.dart +++ b/lib/screens/chat/room.dart @@ -1061,14 +1061,14 @@ class _ChatInput extends HookConsumerWidget { children: [ if (attachments.isNotEmpty) SizedBox( - height: 280, + height: 324, child: ListView.separated( padding: EdgeInsets.symmetric(horizontal: 12), scrollDirection: Axis.horizontal, itemCount: attachments.length, itemBuilder: (context, idx) { return SizedBox( - height: 280, + height: 320, width: 280, child: AttachmentPreview( item: attachments[idx], diff --git a/lib/widgets/stickers/picker.dart b/lib/widgets/stickers/picker.dart index 1762b14..e7eec73 100644 --- a/lib/widgets/stickers/picker.dart +++ b/lib/widgets/stickers/picker.dart @@ -171,21 +171,23 @@ class _PackSwitcherState extends State<_PackSwitcher> { ), const Spacer(), IconButton( + padding: EdgeInsets.zero, + visualDensity: VisualDensity.compact, tooltip: 'close'.tr(), onPressed: () => Navigator.of(context).maybePop(), icon: const Icon(Symbols.close), ), ], - ).padding(horizontal: 12, top: 8, bottom: 4), + ).padding(horizontal: 12, top: 8), // Vertical, scrollable packs rail like common emoji pickers SizedBox( - height: 52, + height: 48, child: ListView.separated( padding: const EdgeInsets.symmetric(horizontal: 8), scrollDirection: Axis.horizontal, itemCount: packs.length, - separatorBuilder: (_, __) => const Gap(4), + separatorBuilder: (_, _) => const Gap(4), itemBuilder: (context, i) { final selected = _index == i; return Tooltip( @@ -201,7 +203,7 @@ class _PackSwitcherState extends State<_PackSwitcher> { ); }, ), - ), + ).padding(bottom: 8), const Divider(height: 1), // Content @@ -214,7 +216,6 @@ class _PackSwitcherState extends State<_PackSwitcher> { ), ), ), - Gap(MediaQuery.of(context).padding.bottom), ], ); }