Restore symmetric agent stream spacing and input alignment
This commit is contained in:
@@ -474,7 +474,7 @@ export function AgentStreamView({
|
|||||||
const getTurnContent = () => collectAssistantTurnContent(flatListData, index);
|
const getTurnContent = () => collectAssistantTurnContent(flatListData, index);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[stylesheet.paddedContentWrapper, { marginBottom: gapBelow }]}>
|
<View style={[stylesheet.streamItemWrapper, { marginBottom: gapBelow }]}>
|
||||||
{content}
|
{content}
|
||||||
{isEndOfAssistantTurn ? (
|
{isEndOfAssistantTurn ? (
|
||||||
<TurnCopyButton getContent={getTurnContent} />
|
<TurnCopyButton getContent={getTurnContent} />
|
||||||
@@ -575,7 +575,7 @@ export function AgentStreamView({
|
|||||||
const leftContent = showWorkingIndicator ? <WorkingIndicator /> : null;
|
const leftContent = showWorkingIndicator ? <WorkingIndicator /> : null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={stylesheet.paddedContentWrapper}>
|
<View style={stylesheet.contentWrapper}>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
stylesheet.listHeaderContent,
|
stylesheet.listHeaderContent,
|
||||||
@@ -657,7 +657,7 @@ export function AgentStreamView({
|
|||||||
|
|
||||||
if (shouldShowWorking) {
|
if (shouldShowWorking) {
|
||||||
return (
|
return (
|
||||||
<View style={[stylesheet.emptyState, stylesheet.paddedContentWrapper]}>
|
<View style={[stylesheet.emptyState, stylesheet.contentWrapper]}>
|
||||||
<ActivityIndicator
|
<ActivityIndicator
|
||||||
size="small"
|
size="small"
|
||||||
color={theme.colors.foregroundMuted}
|
color={theme.colors.foregroundMuted}
|
||||||
@@ -668,7 +668,7 @@ export function AgentStreamView({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[stylesheet.emptyState, stylesheet.paddedContentWrapper]}>
|
<View style={[stylesheet.emptyState, stylesheet.contentWrapper]}>
|
||||||
<Text style={stylesheet.emptyStateText}>
|
<Text style={stylesheet.emptyStateText}>
|
||||||
Start chatting with this agent...
|
Start chatting with this agent...
|
||||||
</Text>
|
</Text>
|
||||||
@@ -692,10 +692,7 @@ export function AgentStreamView({
|
|||||||
keyExtractor={(item) => item.id}
|
keyExtractor={(item) => item.id}
|
||||||
testID="agent-chat-scroll"
|
testID="agent-chat-scroll"
|
||||||
ListHeaderComponentStyle={headerGapStyle}
|
ListHeaderComponentStyle={headerGapStyle}
|
||||||
contentContainerStyle={{
|
contentContainerStyle={stylesheet.listContentContainer}
|
||||||
paddingVertical: 0,
|
|
||||||
flexGrow: 1,
|
|
||||||
}}
|
|
||||||
style={stylesheet.list}
|
style={stylesheet.list}
|
||||||
onLayout={
|
onLayout={
|
||||||
showDesktopWebScrollbar
|
showDesktopWebScrollbar
|
||||||
@@ -1279,10 +1276,14 @@ const stylesheet = StyleSheet.create((theme) => ({
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
backgroundColor: theme.colors.surface0,
|
backgroundColor: theme.colors.surface0,
|
||||||
},
|
},
|
||||||
paddedContentWrapper: {
|
contentWrapper: {
|
||||||
width: "100%",
|
width: "100%",
|
||||||
maxWidth: MAX_CONTENT_WIDTH,
|
maxWidth: MAX_CONTENT_WIDTH,
|
||||||
alignSelf: "center",
|
alignSelf: "center",
|
||||||
|
},
|
||||||
|
listContentContainer: {
|
||||||
|
paddingVertical: 0,
|
||||||
|
flexGrow: 1,
|
||||||
paddingHorizontal: {
|
paddingHorizontal: {
|
||||||
xs: theme.spacing[2],
|
xs: theme.spacing[2],
|
||||||
md: theme.spacing[4],
|
md: theme.spacing[4],
|
||||||
|
|||||||
Reference in New Issue
Block a user