🐛 Fix room input

This commit is contained in:
2025-08-07 12:04:47 +08:00
parent 30b8a6c30f
commit f00135c4bf
2 changed files with 8 additions and 7 deletions

View File

@@ -1061,14 +1061,14 @@ class _ChatInput extends HookConsumerWidget {
children: [ children: [
if (attachments.isNotEmpty) if (attachments.isNotEmpty)
SizedBox( SizedBox(
height: 280, height: 324,
child: ListView.separated( child: ListView.separated(
padding: EdgeInsets.symmetric(horizontal: 12), padding: EdgeInsets.symmetric(horizontal: 12),
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
itemCount: attachments.length, itemCount: attachments.length,
itemBuilder: (context, idx) { itemBuilder: (context, idx) {
return SizedBox( return SizedBox(
height: 280, height: 320,
width: 280, width: 280,
child: AttachmentPreview( child: AttachmentPreview(
item: attachments[idx], item: attachments[idx],

View File

@@ -171,21 +171,23 @@ class _PackSwitcherState extends State<_PackSwitcher> {
), ),
const Spacer(), const Spacer(),
IconButton( IconButton(
padding: EdgeInsets.zero,
visualDensity: VisualDensity.compact,
tooltip: 'close'.tr(), tooltip: 'close'.tr(),
onPressed: () => Navigator.of(context).maybePop(), onPressed: () => Navigator.of(context).maybePop(),
icon: const Icon(Symbols.close), 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 // Vertical, scrollable packs rail like common emoji pickers
SizedBox( SizedBox(
height: 52, height: 48,
child: ListView.separated( child: ListView.separated(
padding: const EdgeInsets.symmetric(horizontal: 8), padding: const EdgeInsets.symmetric(horizontal: 8),
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
itemCount: packs.length, itemCount: packs.length,
separatorBuilder: (_, __) => const Gap(4), separatorBuilder: (_, _) => const Gap(4),
itemBuilder: (context, i) { itemBuilder: (context, i) {
final selected = _index == i; final selected = _index == i;
return Tooltip( return Tooltip(
@@ -201,7 +203,7 @@ class _PackSwitcherState extends State<_PackSwitcher> {
); );
}, },
), ),
), ).padding(bottom: 8),
const Divider(height: 1), const Divider(height: 1),
// Content // Content
@@ -214,7 +216,6 @@ class _PackSwitcherState extends State<_PackSwitcher> {
), ),
), ),
), ),
Gap(MediaQuery.of(context).padding.bottom),
], ],
); );
} }