fix(chat): chat input layout with prompt overlay
This commit is contained in:
@@ -1067,7 +1067,8 @@ class _ModernChatInputState extends ConsumerState<ModernChatInput>
|
|||||||
f.status == FileUploadStatus.uploading ||
|
f.status == FileUploadStatus.uploading ||
|
||||||
f.status == FileUploadStatus.pending,
|
f.status == FileUploadStatus.pending,
|
||||||
);
|
);
|
||||||
final allUploadsComplete = attachedFiles.isEmpty ||
|
final allUploadsComplete =
|
||||||
|
attachedFiles.isEmpty ||
|
||||||
attachedFiles.every((f) => f.status == FileUploadStatus.completed);
|
attachedFiles.every((f) => f.status == FileUploadStatus.completed);
|
||||||
|
|
||||||
final webSearchEnabled = ref.watch(webSearchEnabledProvider);
|
final webSearchEnabled = ref.watch(webSearchEnabledProvider);
|
||||||
@@ -1410,7 +1411,16 @@ class _ModernChatInputState extends ConsumerState<ModernChatInput>
|
|||||||
Spacing.screenPadding,
|
Spacing.screenPadding,
|
||||||
bottomPadding + Spacing.md,
|
bottomPadding + Spacing.md,
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: [
|
||||||
|
// Show prompt overlay above the compact input row when active
|
||||||
|
if (_showPromptOverlay)
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(bottom: Spacing.xs),
|
||||||
|
child: _buildPromptOverlay(context),
|
||||||
|
),
|
||||||
|
Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
_buildOverflowButton(
|
_buildOverflowButton(
|
||||||
@@ -1433,6 +1443,8 @@ class _ModernChatInputState extends ConsumerState<ModernChatInput>
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Submodule openwebui-src updated: d95f533214...2b26355002
Reference in New Issue
Block a user